Skip to content

Commit 4070412

Browse files
markkovaribrooksmtownsend
authored andcommitted
chore(examples): reorder link props to target-interface-source
Signed-off-by: Márk Kővári <kovarimarkofficial@gmail.com>
1 parent d2e7faf commit 4070412

File tree

46 files changed

+201
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+201
-201
lines changed

examples/c/components/http-hello-world/local.wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ spec:
2929
# The source (this provider) is configured such that the HTTP server listens on 0.0.0.0:8000
3030
- type: link
3131
properties:
32+
target:
33+
name: http-component
3234
namespace: wasi
3335
package: http
3436
interfaces: [incoming-handler]
35-
target:
36-
name: http-component
3737
source:
3838
config:
3939
- name: default-http

examples/c/components/http-hello-world/wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ spec:
3434
# The source (this provider) is configured such that the HTTP server listens on 0.0.0.0:8000
3535
- type: link
3636
properties:
37+
target:
38+
name: http-component
3739
namespace: wasi
3840
package: http
3941
interfaces: [incoming-handler]
40-
target:
41-
name: http-component
4242
source:
4343
config:
4444
- name: default-http

examples/golang/components/http-client-tinygo/local.wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ spec:
2727
# (i.e. making external web requests)
2828
- type: link
2929
properties:
30+
target:
31+
name: httpclient
3032
namespace: wasi
3133
package: http
3234
interfaces: [outgoing-handler]
33-
target:
34-
name: httpclient
3535

3636
# Add a capability provider that enables HTTP access
3737
- name: httpserver
@@ -56,11 +56,11 @@ spec:
5656
# the component to handle a request.
5757
- type: link
5858
properties:
59+
target:
60+
name: http-component
5961
namespace: wasi
6062
package: http
6163
interfaces: [incoming-handler]
62-
target:
63-
name: http-component
6464
source:
6565
config:
6666
- name: default-http

examples/golang/components/http-client-tinygo/wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ spec:
2727
# (i.e. making external web requests)
2828
- type: link
2929
properties:
30+
target:
31+
name: httpclient
3032
namespace: wasi
3133
package: http
3234
interfaces: [outgoing-handler]
33-
target:
34-
name: httpclient
3535

3636
# Add a capability provider that enables HTTP access
3737
- name: httpserver
@@ -56,11 +56,11 @@ spec:
5656
# the component to handle a request.
5757
- type: link
5858
properties:
59+
target:
60+
name: http-component
5961
namespace: wasi
6062
package: http
6163
interfaces: [incoming-handler]
62-
target:
63-
name: http-component
6464
source:
6565
config:
6666
- name: default-http

examples/golang/components/http-echo-tinygo/tests/fixtures/wadm.template.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ spec:
2323
traits:
2424
- type: link
2525
properties:
26+
target:
27+
name: test-http-echo-tinygo
2628
namespace: wasi
2729
package: http
2830
interfaces: [incoming-handler]
29-
target:
30-
name: test-http-echo-tinygo
3131
source:
3232
config:
3333
- name: default-http

examples/golang/components/http-echo-tinygo/wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ spec:
4444
# on the local machine
4545
- type: link
4646
properties:
47+
target:
48+
name: http-echo-tinygo
4749
namespace: wasi
4850
package: http
4951
interfaces: [incoming-handler]
50-
target:
51-
name: http-echo-tinygo
5252
source:
5353
config:
5454
- name: default-http

examples/golang/components/http-hello-world/wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ spec:
3737
# the component to handle a request.
3838
- type: link
3939
properties:
40+
target:
41+
name: http-component
4042
namespace: wasi
4143
package: http
4244
interfaces: [incoming-handler]
43-
target:
44-
name: http-component
4545
source:
4646
config:
4747
- name: default-http

examples/golang/components/http-password-checker/wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ spec:
3737
# the component to handle a request.
3838
- type: link
3939
properties:
40+
target:
41+
name: http-component
4042
namespace: wasi
4143
package: http
4244
interfaces: [incoming-handler]
43-
target:
44-
name: http-component
4545
source:
4646
config:
4747
- name: default-http

examples/golang/components/sqldb-postgres-query/local.wadm.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ spec:
2929
# (i.e. reading/writing to a database)
3030
- type: link
3131
properties:
32-
namespace: wasmcloud
33-
package: postgres
34-
interfaces: [query]
3532
target:
3633
name: sqldb-postgres
3734
config:
3835
- name: default-postgres
36+
namespace: wasmcloud
37+
package: postgres
38+
interfaces: [query]
3939

4040
# Add a capability provider that interacts with the filesystem
4141
- name: sqldb-postgres

examples/golang/providers/custom-template/wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ spec:
2828
# can make use of outgoing handler functionality (i.e. calling functions in the system-info interface)
2929
- type: link
3030
properties:
31+
target:
32+
name: custom-template
3133
namespace: wasmcloud
3234
package: example
3335
interfaces: [system-info]
34-
target:
35-
name: custom-template
3636

3737
- name: custom-template
3838
type: capability
@@ -51,8 +51,8 @@ spec:
5151
# wasmcloud:example/process-data interface on `test-component`.
5252
- type: link
5353
properties:
54+
target:
55+
name: test-component
5456
namespace: wasmcloud
5557
package: example
5658
interfaces: [process-data]
57-
target:
58-
name: test-component

examples/python/components/http-hello-world/wadm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ spec:
3737
# the component to handle a request.
3838
- type: link
3939
properties:
40+
target:
41+
name: http-component
4042
namespace: wasi
4143
package: http
4244
interfaces: [incoming-handler]
43-
target:
44-
name: http-component
4545
source:
4646
config:
4747
- name: default-http

examples/rust/components/blobby/wadm.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ spec:
3434
# (i.e. reading/writing data blobs)
3535
- type: link
3636
properties:
37-
namespace: wasi
38-
package: blobstore
39-
interfaces: [blobstore]
4037
target:
4138
name: blobstore
4239
config:
4340
- name: root-directory
4441
properties:
4542
root: '/tmp/blobstore'
43+
namespace: wasi
44+
package: blobstore
45+
interfaces: [blobstore]
4646

4747
# Capability Providers
4848
- name: http
@@ -59,11 +59,11 @@ spec:
5959
# the component to handle a request.
6060
- type: link
6161
properties:
62+
target:
63+
name: blobby
6264
namespace: wasi
6365
package: http
6466
interfaces: [incoming-handler]
65-
target:
66-
name: blobby
6767
source:
6868
config:
6969
- name: default-http

examples/rust/components/dog-fetcher/local.wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ spec:
2222
# (i.e. making external web requests)
2323
- type: link
2424
properties:
25+
target:
26+
name: httpclient
2527
namespace: wasi
2628
package: http
2729
interfaces: [outgoing-handler]
28-
target:
29-
name: httpclient
3030

3131
# Add a capability provider that enables HTTP access
3232
- name: httpserver
@@ -51,11 +51,11 @@ spec:
5151
# the component to handle an incoming HTTP request.
5252
- type: link
5353
properties:
54+
target:
55+
name: http-component
5456
namespace: wasi
5557
package: http
5658
interfaces: [incoming-handler]
57-
target:
58-
name: http-component
5959
source:
6060
config:
6161
- name: default-http

examples/rust/components/dog-fetcher/wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ spec:
3030
# (i.e. making external web requests)
3131
- type: link
3232
properties:
33+
target:
34+
name: httpclient
3335
namespace: wasi
3436
package: http
3537
interfaces: [outgoing-handler]
36-
target:
37-
name: httpclient
3838

3939
# Add a capability provider that enables HTTP access
4040
- name: httpserver
@@ -59,11 +59,11 @@ spec:
5959
# the component to handle an incoming HTTP request.
6060
- type: link
6161
properties:
62+
target:
63+
name: http-component
6264
namespace: wasi
6365
package: http
6466
interfaces: [incoming-handler]
65-
target:
66-
name: http-component
6767
source:
6868
config:
6969
- name: default-http

examples/rust/components/echo-messaging-0-3-0/local.wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ spec:
2323
# (i.e. making interacting with the messaging system, in this case NATS)
2424
- type: link
2525
properties:
26+
target:
27+
name: nats
2628
namespace: wasmcloud
2729
package: messaging
2830
interfaces: [consumer]
29-
target:
30-
name: nats
3131

3232
# Add a capability provider that implements `wasmcloud:messaging` using NATS
3333
- name: nats
@@ -51,11 +51,11 @@ spec:
5151
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/incoming-handler interface) .
5252
- type: link
5353
properties:
54+
target:
55+
name: echo
5456
namespace: wasmcloud
5557
package: messaging
5658
interfaces: [handler]
57-
target:
58-
name: echo
5959
source:
6060
config:
6161
- name: simple-subscription

examples/rust/components/echo-messaging-0-3-0/wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ spec:
3030
# (i.e. making interacting with the messaging system, in this case NATS)
3131
- type: link
3232
properties:
33+
target:
34+
name: nats
3335
namespace: wasmcloud
3436
package: messaging
3537
interfaces: [consumer]
36-
target:
37-
name: nats
3838

3939
# Add a capability provider that implements `wasmcloud:messaging` using NATS
4040
- name: nats
@@ -58,11 +58,11 @@ spec:
5858
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) .
5959
- type: link
6060
properties:
61+
target:
62+
name: echo
6163
namespace: wasmcloud
6264
package: messaging
6365
interfaces: [handler]
64-
target:
65-
name: echo
6666
source:
6767
config:
6868
- name: simple-subscription

examples/rust/components/echo-messaging/local.wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ spec:
2323
# (i.e. making interacting with the messaging system, in this case NATS)
2424
- type: link
2525
properties:
26+
target:
27+
name: nats
2628
namespace: wasmcloud
2729
package: messaging
2830
interfaces: [consumer]
29-
target:
30-
name: nats
3131

3232
# Add a capability provider that implements `wasmcloud:messaging` using NATS
3333
- name: nats
@@ -51,11 +51,11 @@ spec:
5151
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) .
5252
- type: link
5353
properties:
54+
target:
55+
name: echo
5456
namespace: wasmcloud
5557
package: messaging
5658
interfaces: [handler]
57-
target:
58-
name: echo
5959
source:
6060
config:
6161
- name: simple-subscription

examples/rust/components/echo-messaging/wadm.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ spec:
3030
# (i.e. making interacting with the messaging system, in this case NATS)
3131
- type: link
3232
properties:
33+
target:
34+
name: nats
3335
namespace: wasmcloud
3436
package: messaging
3537
interfaces: [consumer]
36-
target:
37-
name: nats
3838

3939
# Add a capability provider that implements `wasmcloud:messaging` using NATS
4040
- name: nats
@@ -58,11 +58,11 @@ spec:
5858
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) .
5959
- type: link
6060
properties:
61+
target:
62+
name: echo
6163
namespace: wasmcloud
6264
package: messaging
6365
interfaces: [handler]
64-
target:
65-
name: echo
6666
source:
6767
config:
6868
- name: simple-subscription

0 commit comments

Comments
 (0)