File tree 16 files changed +114
-93
lines changed
golang/components/sqldb-postgres-query
messaging-image-processor-worker
16 files changed +114
-93
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,13 @@ spec:
29
29
# (i.e. reading/writing to a database)
30
30
- type : link
31
31
properties :
32
- target : sqldb-postgres
33
32
namespace : wasmcloud
34
33
package : postgres
35
34
interfaces : [query]
36
- target_config :
37
- - name : default-postgres
35
+ target :
36
+ - name : sqldb-postgres
37
+ config :
38
+ - name : default-postgres
38
39
39
40
# Add a capability provider that interacts with the filesystem
40
41
- name : sqldb-postgres
Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ spec:
34
34
# (i.e. reading/writing data blobs)
35
35
- type : link
36
36
properties :
37
- target : blobstore
38
37
namespace : wasi
39
38
package : blobstore
40
39
interfaces : [blobstore]
41
- target_config :
42
- - name : root-directory
43
- properties :
44
- root : ' /tmp/blobstore'
40
+ target :
41
+ - name : blobstore
42
+ config :
43
+ - name : root-directory
44
+ properties :
45
+ root : ' /tmp/blobstore'
45
46
46
47
# Capability Providers
47
48
- name : http
Original file line number Diff line number Diff line change @@ -25,14 +25,15 @@ spec:
25
25
# (i.e. reading/writing blobs)
26
26
- type : link
27
27
properties :
28
- target : blobstore-fs
29
28
namespace : wasi
30
29
package : blobstore
31
30
interfaces : [blobstore]
32
- target_config :
33
- - name : root-directory
34
- properties :
35
- root : ' /tmp'
31
+ target :
32
+ - name : blobstore-fs
33
+ config :
34
+ - name : root-directory
35
+ properties :
36
+ root : ' /tmp'
36
37
37
38
# Capability provider that serves HTTP requests
38
39
- name : httpserver
Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ spec:
33
33
# (i.e. reading/writing blobs)
34
34
- type : link
35
35
properties :
36
- target : blobstore-fs
37
36
namespace : wasi
38
37
package : blobstore
39
38
interfaces : [blobstore]
40
- target_config :
41
- - name : root-directory
42
- properties :
43
- root : ' /tmp'
39
+ target :
40
+ - name : blobstore-fs
41
+ config :
42
+ - name : root-directory
43
+ properties :
44
+ root : ' /tmp'
44
45
45
46
# Capability provider that serves HTTP requests
46
47
- name : httpserver
Original file line number Diff line number Diff line change @@ -20,17 +20,18 @@ spec:
20
20
#
21
21
# Establish a unidirectional link to the `kvredis` (the keyvalue capability provider),
22
22
# so the `counter` component can make use of keyvalue functionality provided by the Redis
23
- # (i.e. using a keyvalue cache)
23
+ # (i.e. using a keyvalue cache)
24
24
- type : link
25
25
properties :
26
- target : kvredis
27
26
namespace : wasi
28
27
package : keyvalue
29
28
interfaces : [atomics, store]
30
- target_config :
31
- - name : redis-url
32
- properties :
33
- url : redis://0.0.0.0:6379
29
+ target :
30
+ - name : kvredis
31
+ config :
32
+ - name : redis-url
33
+ properties :
34
+ url : redis://0.0.0.0:6379
34
35
35
36
# Add a capability provider that enables Redis access
36
37
- name : kvredis
Original file line number Diff line number Diff line change @@ -28,17 +28,18 @@ spec:
28
28
#
29
29
# Establish a unidirectional link to the `kvredis` (the keyvalue capability provider),
30
30
# so the `counter` component can make use of keyvalue functionality provided by the Redis
31
- # (i.e. using a keyvalue cache)
31
+ # (i.e. using a keyvalue cache)
32
32
- type : link
33
33
properties :
34
- target : kvredis
35
34
namespace : wasi
36
35
package : keyvalue
37
36
interfaces : [atomics, store]
38
- target_config :
39
- - name : redis-url
40
- properties :
41
- url : redis://0.0.0.0:6379
37
+ target :
38
+ - name : kvredis
39
+ config :
40
+ - name : redis-url
41
+ properties :
42
+ url : redis://0.0.0.0:6379
42
43
43
44
# Add a capability provider that enables Redis access
44
45
- name : kvredis
Original file line number Diff line number Diff line change @@ -28,12 +28,13 @@ spec:
28
28
# (i.e. reading/writing to a database)
29
29
- type : link
30
30
properties :
31
- target : sqldb-postgres
32
31
namespace : wasmcloud
33
32
package : postgres
34
33
interfaces : [query]
35
- target_config :
36
- - name : default-postgres
34
+ target :
35
+ - name : sqldb-postgres
36
+ config :
37
+ - name : default-postgres
37
38
38
39
# Add a capability provider that enables HTTP access
39
40
- name : httpserver
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ spec:
18
18
instances : 1
19
19
- type : link
20
20
properties :
21
- target : sqldb-postgres
22
21
namespace : wasmcloud
23
22
package : postgres
24
23
interfaces : [query]
25
- target_config :
26
- - name : test-default-postgres
24
+ target :
25
+ - name : sqldb-postgres
26
+ config :
27
+ - name : test-default-postgres
27
28
28
29
- name : httpserver
29
30
type : capability
Original file line number Diff line number Diff line change @@ -29,12 +29,13 @@ spec:
29
29
# (i.e. reading/writing to a database)
30
30
- type : link
31
31
properties :
32
- target : sqldb-postgres
33
32
namespace : wasmcloud
34
33
package : postgres
35
34
interfaces : [query]
36
- target_config :
37
- - name : default-postgres
35
+ target :
36
+ - name : sqldb-postgres
37
+ config :
38
+ - name : default-postgres
38
39
39
40
# Add a capability provider that enables HTTP access
40
41
- name : httpserver
Original file line number Diff line number Diff line change @@ -27,29 +27,31 @@ spec:
27
27
- type : link
28
28
properties :
29
29
name : bucket-id1
30
- target : nats-kv
31
30
namespace : wasi
32
31
package : keyvalue
33
32
interfaces : [store, atomics]
34
33
# NOTE: The following is an example of how to configure the NATS Kv capability provider, for an individual component
35
- target_config :
36
- - name : wasmcloud
37
- properties :
38
- bucket : " WASMCLOUD"
39
- enable_bucket_auto_create : " true"
34
+ target :
35
+ - name : nats-kv
36
+ config :
37
+ - name : wasmcloud
38
+ properties :
39
+ bucket : " WASMCLOUD"
40
+ enable_bucket_auto_create : " true"
40
41
41
42
# # NOTE: The following is an example of how to configure additional named links to the same capability provider
42
43
# - type: link
43
44
# properties:
44
45
# name: bucket-id2
45
- # target: nats-kv
46
46
# namespace: wasi
47
47
# package: keyvalue
48
48
# interfaces: [store, atomics]
49
- # target_config:
50
- # - name: wasmland
51
- # properties:
52
- # bucket: "WASMLAND"
49
+ # target:
50
+ # - name: nats-kv
51
+ # config:
52
+ # - name: wasmland
53
+ # properties:
54
+ # bucket: "WASMLAND"
53
55
54
56
- type : link
55
57
properties :
Original file line number Diff line number Diff line change @@ -29,27 +29,29 @@ spec:
29
29
- type : link
30
30
properties :
31
31
name : bucket-id1
32
- target : nats-kv
33
32
namespace : wasi
34
33
package : keyvalue
35
34
interfaces : [store, atomics]
36
35
# NOTE: The following is an example of how to configure the NATS Kv capability provider, for an individual component
37
- target_config :
38
- - name : wasmcloud
39
- properties :
40
- bucket : " WASMCLOUD"
36
+ target :
37
+ - name : nats-kv
38
+ config :
39
+ - name : wasmcloud
40
+ properties :
41
+ bucket : " WASMCLOUD"
41
42
# # NOTE: The following is an example of how to configure additional named links to the same capability provider
42
43
# - type: link
43
44
# properties:
44
45
# name: bucket-id2
45
- # target: nats-kv
46
46
# namespace: wasi
47
47
# package: keyvalue
48
48
# interfaces: [store, atomics]
49
- # target_config:
50
- # - name: wasmland
51
- # properties:
52
- # bucket: "WASMLAND"
49
+ # target:
50
+ # - name: nats-kv
51
+ # config:
52
+ # - name: wasmland
53
+ # properties:
54
+ # bucket: "WASMLAND"
53
55
- type : link
54
56
properties :
55
57
target : nats-msg
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ spec:
18
18
instances : 1
19
19
- type : link
20
20
properties :
21
- target : sqldb-postgres
22
21
namespace : wasmcloud
23
22
package : postgres
24
23
interfaces : [query]
25
- target_config :
26
- - name : default-postgres
24
+ target :
25
+ - name : sqldb-postgres
26
+ config :
27
+ - name : default-postgres
27
28
28
29
- name : messaging-image-processor
29
30
type : component
@@ -35,14 +36,15 @@ spec:
35
36
instances : 1
36
37
- type : link
37
38
properties :
38
- target : blobstore-fs
39
39
namespace : wasi
40
40
package : blobstore
41
41
interfaces : [blobstore]
42
- target_config :
43
- - name : root-directory
44
- properties :
45
- root : ' /tmp/test-messaging-processor'
42
+ target :
43
+ - name : blobstore-fs
44
+ config :
45
+ - name : root-directory
46
+ properties :
47
+ root : " /tmp/test-messaging-processor"
46
48
- type : link
47
49
properties :
48
50
target : http-task-mgr
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ spec:
18
18
instances : 1
19
19
- type : link
20
20
properties :
21
- target : sqldb-postgres
22
21
namespace : wasmcloud
23
22
package : postgres
24
23
interfaces : [query]
25
- target_config :
26
- - name : test-default-postgres
24
+ target :
25
+ - name : sqldb-postgres
26
+ config :
27
+ - name : test-default-postgres
27
28
28
29
- name : messaging-image-processor
29
30
type : component
@@ -35,14 +36,15 @@ spec:
35
36
instances : 1
36
37
- type : link
37
38
properties :
38
- target : blobstore-fs
39
39
namespace : wasi
40
40
package : blobstore
41
41
interfaces : [blobstore]
42
- target_config :
43
- - name : root-directory
44
- properties :
45
- root : ' /tmp/test-messaging-processor'
42
+ target :
43
+ - name : blobstore-fs
44
+ config :
45
+ - name : root-directory
46
+ properties :
47
+ root : " /tmp/test-messaging-processor"
46
48
- type : link
47
49
properties :
48
50
target : http-task-mgr
@@ -103,4 +105,4 @@ spec:
103
105
interfaces : [handler]
104
106
source :
105
107
config :
106
- - name : test-default-messaging
108
+ - name : test-default-messaging
Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ spec:
25
25
instances : 1
26
26
- type : link
27
27
properties :
28
- target : sqldb-postgres
29
28
namespace : wasmcloud
30
29
package : postgres
31
30
interfaces : [query]
32
- target_config :
33
- - name : default-postgres
31
+ target :
32
+ - name : sqldb-postgres
33
+ config :
34
+ - name : default-postgres
34
35
35
36
- name : messaging-image-processor
36
37
type : component
@@ -42,14 +43,15 @@ spec:
42
43
instances : 1
43
44
- type : link
44
45
properties :
45
- target : blobstore-fs
46
46
namespace : wasi
47
47
package : blobstore
48
48
interfaces : [blobstore]
49
- target_config :
50
- - name : root-directory
51
- properties :
52
- root : ' /tmp/test-messaging-processor'
49
+ target :
50
+ - name : blobstore-fs
51
+ config :
52
+ - name : root-directory
53
+ properties :
54
+ root : " /tmp/test-messaging-processor"
53
55
- type : link
54
56
properties :
55
57
target : http-task-mgr
You can’t perform that action at this time.
0 commit comments