-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-config.yaml
48 lines (45 loc) · 1.5 KB
/
sample-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
kafka-client:
id: my-unique-ID
bootstrap-servers: localhost:9092
url-generator:
base: https://dcache.example.org/
macaroons:
username: dyn-data-agent
password: dyn-data-password
default-lifetime: PT15M
files:
- target: uploaded-foo-movies # which topic to send event
path-predicate:
matching: '/data/foo/[^/]*\.mp4' # must match whole path
ignoring: '-derived\.[^/.]*$' # partial match, unless anchored
urls:
read: # Create a URL for downloading
with-macaroon: # incoming data.
activity: DOWNLOAD
write:
with-macaroon:
activity: UPLOAD
derived-path: # Calculate a new path
replacing: '([^/]*)\.([^.]*)$'
with: '\1-derived.\2'
log:
with-macaroon:
activity: UPLOAD
derived-path:
replacing: '([^/]*)\.[^.]*$'
with: '\1-derived.log'
- target: uploaded-foo-images
path-predicate:
matching: '/data/foo/incoming/[^/]*\.(jpe?g|tiff?)'
ignoring: '-derived\.[^/.]*$'
urls:
read:
with-macaroon:
activity: DOWNLOAD
write:
with-macaroon:
activity: UPLOAD
derived-path:
replacing: '([^/]*)\.([^.]*)$'
with: '\1-output'
create-path: true # Create the path