From 7393059e7a4220b327e5cc4f9860b0c7c0e21c60 Mon Sep 17 00:00:00 2001 From: siyual-park Date: Fri, 22 Nov 2024 17:03:37 +0900 Subject: [PATCH] refactor: change resource name 'nodes' to 'specs' --- README.md | 2 +- README_kr.md | 2 +- cmd/README.md | 8 ++++---- cmd/README_kr.md | 8 ++++---- cmd/pkg/uniflow/main.go | 22 +++++++++++----------- cmd/pkg/uniflowctl/main.go | 6 +++--- docs/architecture.md | 32 ++++++++++++++++---------------- docs/architecture_kr.md | 32 ++++++++++++++++---------------- docs/getting_started.md | 10 +++++----- docs/getting_started_kr.md | 10 +++++----- examples/system.yaml | 32 ++++++++++++++++---------------- ext/docs/native_node.md | 6 +++--- ext/docs/native_node_kr.md | 6 +++--- 13 files changed, 88 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index 74189aaa..34967c11 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Adjust settings through `.uniflow.toml` or environment variables. |----------------------|--------------------------|---------------------------| | `database.url` | `DATABASE.URL` | `mem://` or `mongodb://` | | `database.name` | `DATABASE.NAME` | - | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | ## πŸ“Š Benchmark diff --git a/README_kr.md b/README_kr.md index 90921c03..6919d2e1 100644 --- a/README_kr.md +++ b/README_kr.md @@ -89,7 +89,7 @@ pong# |----------------------|--------------------------|---------------------------| | `database.url` | `DATABASE.URL` | `mem://` λ˜λŠ” `mongodb://` | | `database.name` | `DATABASE.NAME` | - | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | ## πŸ“Š 벀치마크 diff --git a/cmd/README.md b/cmd/README.md index 09d53b10..5efd636d 100644 --- a/cmd/README.md +++ b/cmd/README.md @@ -11,7 +11,7 @@ Settings can be modified using the `.uniflow.toml` file or system environment va | `database.url` | `DATABASE.URL` | `mem://` or `mongodb://` | | `database.name` | `DATABASE.NAME` | - | | `collection.charts` | `COLLECTION.CHARTS` | `charts` | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | If you are using [MongoDB](https://www.mongodb.com/), enable [Change Streams](https://www.mongodb.com/docs/manual/changeStreams/) to track resource changes in real time. This requires setting up a [replica set](https://www.mongodb.com/docs/manual/replication/). @@ -31,7 +31,7 @@ The `start` command executes all node specifications in the specified namespace. If the namespace is empty, you can provide an initial node specification using the `--from-specs` flag: ```sh -./dist/uniflow start --namespace default --from-specs examples/nodes.yaml +./dist/uniflow start --namespace default --from-specs examples/specs.yaml ``` You can specify an initial secrets file with the `--from-secrets` flag: @@ -55,7 +55,7 @@ Charts can be initialized using the `--from-charts` flag: The `apply` command applies the contents of a specified file to the namespace. If no namespace is specified, the `default` namespace is used. ```sh -./dist/uniflowctl apply nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl apply nodes --namespace default --filename examples/specs.yaml ``` To apply secrets: @@ -75,7 +75,7 @@ To apply charts: The `delete` command removes all resources defined in the specified file. If no namespace is specified, the `default` namespace is used. ```sh -./dist/uniflowctl delete nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl delete nodes --namespace default --filename examples/specs.yaml ``` To delete secrets: diff --git a/cmd/README_kr.md b/cmd/README_kr.md index 2037d9aa..62d5dcf4 100644 --- a/cmd/README_kr.md +++ b/cmd/README_kr.md @@ -11,7 +11,7 @@ | `database.url` | `DATABASE.URL` | `mem://` λ˜λŠ” `mongodb://` | | `database.name` | `DATABASE.NAME` | - | | `collection.charts` | `COLLECTION.CHARTS` | `charts` | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | λ§Œμ•½ [MongoDB](https://www.mongodb.com/)λ₯Ό μ‚¬μš©ν•œλ‹€λ©΄, λ¦¬μ†ŒμŠ€μ˜ λ³€κ²½ 사항을 μ‹€μ‹œκ°„μœΌλ‘œ μΆ”μ ν•˜κΈ° μœ„ν•΄ [λ³€κ²½ 슀트림](https://www.mongodb.com/docs/manual/changeStreams/)을 ν™œμ„±ν™”ν•΄μ•Ό ν•©λ‹ˆλ‹€. 이λ₯Ό μœ„ν•΄μ„œλŠ” [볡제 μ„ΈνŠΈ](https://www.mongodb.com/docs/manual/replication/) 섀정이 ν•„μš”ν•©λ‹ˆλ‹€. @@ -31,7 +31,7 @@ λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ λΉ„μ–΄ μžˆμ„ 경우, 초기 λ…Έλ“œ λͺ…μ„Έλ₯Ό `--from-specs` ν”Œλž˜κ·Έλ‘œ μ œκ³΅ν•  수 μžˆμŠ΅λ‹ˆλ‹€: ```sh -./dist/uniflow start --namespace default --from-specs examples/nodes.yaml +./dist/uniflow start --namespace default --from-specs examples/specs.yaml ``` 초기 μ‹œν¬λ¦Ώ νŒŒμΌμ€ `--from-secrets` ν”Œλž˜κ·Έλ‘œ μ„€μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€: @@ -54,7 +54,7 @@ `apply` λͺ…λ Ήμ–΄λŠ” μ§€μ •λœ 파일 λ‚΄μš©μ„ λ„€μž„μŠ€νŽ˜μ΄μŠ€μ— μ μš©ν•©λ‹ˆλ‹€. λ„€μž„μŠ€νŽ˜μ΄μŠ€λ₯Ό μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ 기본적으둜 `default` λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ μ‚¬μš©λ©λ‹ˆλ‹€. ```sh -./dist/uniflowctl apply nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl apply nodes --namespace default --filename examples/specs.yaml ``` μ‹œν¬λ¦Ώμ„ μ μš©ν•˜λ €λ©΄: @@ -74,7 +74,7 @@ `delete` λͺ…λ Ήμ–΄λŠ” μ§€μ •λœ νŒŒμΌμ— μ •μ˜λœ λͺ¨λ“  λ¦¬μ†ŒμŠ€λ₯Ό μ‚­μ œν•©λ‹ˆλ‹€. λ„€μž„μŠ€νŽ˜μ΄μŠ€λ₯Ό μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ 기본적으둜 `default` λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ μ‚¬μš©λ©λ‹ˆλ‹€. ```sh -./dist/uniflowctl delete nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl delete nodes --namespace default --filename examples/specs.yaml ``` μ‹œν¬λ¦Ώμ„ μ‚­μ œν•˜λ €λ©΄: diff --git a/cmd/pkg/uniflow/main.go b/cmd/pkg/uniflow/main.go index cc5a9c69..75e10994 100644 --- a/cmd/pkg/uniflow/main.go +++ b/cmd/pkg/uniflow/main.go @@ -30,7 +30,7 @@ const configFile = ".uniflow.toml" const ( flagDatabaseURL = "database.url" flagDatabaseName = "database.name" - flagCollectionNodes = "collection.nodes" + flagCollectionSpecs = "collection.specs" flagCollectionSecrets = "collection.secrets" flagCollectionCharts = "collection.charts" ) @@ -41,10 +41,10 @@ const ( opUpdateCharts = "charts.update" opDeleteCharts = "charts.delete" - opCreateNodes = "nodes.create" - opReadNodes = "nodes.read" - opUpdateNodes = "nodes.update" - opDeleteNodes = "nodes.delete" + opCreateSpecs = "specs.create" + opReadSpecs = "specs.read" + opUpdateSpecs = "specs.update" + opDeleteSpecs = "specs.delete" opCreateSecrets = "secrets.create" opReadSecrets = "secrets.read" @@ -53,7 +53,7 @@ const ( ) func init() { - viper.SetDefault(flagCollectionNodes, "nodes") + viper.SetDefault(flagCollectionSpecs, "specs") viper.SetDefault(flagCollectionSecrets, "secrets") viper.SetDefault(flagCollectionCharts, "charts") @@ -67,7 +67,7 @@ func main() { databaseURL := viper.GetString(flagDatabaseURL) databaseName := viper.GetString(flagDatabaseName) - collectionNodes := viper.GetString(flagCollectionNodes) + collectionNodes := viper.GetString(flagCollectionSpecs) collectionSecrets := viper.GetString(flagCollectionSecrets) collectionCharts := viper.GetString(flagCollectionCharts) @@ -106,10 +106,10 @@ func main() { langs.Store(typescript.Language, typescript.NewCompiler()) nativeTable := system.NewNativeTable() - nativeTable.Store(opCreateNodes, system.CreateResource(specStore)) - nativeTable.Store(opReadNodes, system.ReadResource(specStore)) - nativeTable.Store(opUpdateNodes, system.UpdateResource(specStore)) - nativeTable.Store(opDeleteNodes, system.DeleteResource(specStore)) + nativeTable.Store(opCreateSpecs, system.CreateResource(specStore)) + nativeTable.Store(opReadSpecs, system.ReadResource(specStore)) + nativeTable.Store(opUpdateSpecs, system.UpdateResource(specStore)) + nativeTable.Store(opDeleteSpecs, system.DeleteResource(specStore)) nativeTable.Store(opCreateSecrets, system.CreateResource(secretStore)) nativeTable.Store(opReadSecrets, system.ReadResource(secretStore)) nativeTable.Store(opUpdateSecrets, system.UpdateResource(secretStore)) diff --git a/cmd/pkg/uniflowctl/main.go b/cmd/pkg/uniflowctl/main.go index c292302c..e8a4fe5d 100644 --- a/cmd/pkg/uniflowctl/main.go +++ b/cmd/pkg/uniflowctl/main.go @@ -17,13 +17,13 @@ const configFile = ".uniflow.toml" const ( flagDatabaseURL = "database.url" flagDatabaseName = "database.name" - flagCollectionNodes = "collection.nodes" + flagCollectionSpecs = "collection.specs" flagCollectionSecrets = "collection.secrets" flagCollectionCharts = "collection.charts" ) func init() { - viper.SetDefault(flagCollectionNodes, "nodes") + viper.SetDefault(flagCollectionSpecs, "specs") viper.SetDefault(flagCollectionSecrets, "secrets") viper.SetDefault(flagCollectionCharts, "charts") @@ -37,7 +37,7 @@ func main() { databaseURL := viper.GetString(flagDatabaseURL) databaseName := viper.GetString(flagDatabaseName) - collectionNodes := viper.GetString(flagCollectionNodes) + collectionNodes := viper.GetString(flagCollectionSpecs) collectionSecrets := viper.GetString(flagCollectionSecrets) collectionCharts := viper.GetString(flagCollectionCharts) diff --git a/docs/architecture.md b/docs/architecture.md index ecfef33d..e76b5619 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -51,39 +51,39 @@ Users can update node specifications by using a Command-Line Interface (CLI) or name: router routes: - method: POST - path: /v1/nodes + path: /v1/specs port: out[0] - method: GET - path: /v1/nodes + path: /v1/specs port: out[1] - method: PATCH - path: /v1/nodes + path: /v1/specs port: out[2] - method: DELETE - path: /v1/nodes + path: /v1/specs port: out[3] ports: out[0]: - - name: nodes_create + - name: specs_create port: in out[1]: - - name: nodes_read + - name: specs_read port: in out[2]: - - name: nodes_update + - name: specs_update port: in out[3]: - - name: nodes_delete + - name: specs_delete port: in - kind: block - name: nodes_create + name: specs_create specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.create + opcode: specs.create - kind: snippet language: javascript code: | @@ -95,13 +95,13 @@ Users can update node specifications by using a Command-Line Interface (CLI) or } - kind: block - name: nodes_read + name: specs_read specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.read + opcode: specs.read - kind: snippet language: javascript code: | @@ -113,13 +113,13 @@ Users can update node specifications by using a Command-Line Interface (CLI) or } - kind: block - name: nodes_update + name: specs_update specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.update + opcode: specs.update - kind: snippet language: javascript code: | @@ -131,13 +131,13 @@ Users can update node specifications by using a Command-Line Interface (CLI) or } - kind: block - name: nodes_delete + name: specs_delete specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.delete + opcode: specs.delete - kind: snippet language: javascript code: | diff --git a/docs/architecture_kr.md b/docs/architecture_kr.md index 6e8323f5..19a2aa73 100644 --- a/docs/architecture_kr.md +++ b/docs/architecture_kr.md @@ -49,39 +49,39 @@ name: router routes: - method: POST - path: /v1/nodes + path: /v1/specs port: out[0] - method: GET - path: /v1/nodes + path: /v1/specs port: out[1] - method: PATCH - path: /v1/nodes + path: /v1/specs port: out[2] - method: DELETE - path: /v1/nodes + path: /v1/specs port: out[3] ports: out[0]: - - name: nodes_create + - name: specs_create port: in out[1]: - - name: nodes_read + - name: specs_read port: in out[2]: - - name: nodes_update + - name: specs_update port: in out[3]: - - name: nodes_delete + - name: specs_delete port: in - kind: block - name: nodes_create + name: specs_create specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.create + opcode: specs.create - kind: snippet language: javascript code: | @@ -93,13 +93,13 @@ } - kind: block - name: nodes_read + name: specs_read specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.read + opcode: specs.read - kind: snippet language: javascript code: | @@ -111,13 +111,13 @@ } - kind: block - name: nodes_update + name: specs_update specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.update + opcode: specs.update - kind: snippet language: javascript code: | @@ -129,13 +129,13 @@ } - kind: block - name: nodes_delete + name: specs_delete specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.delete + opcode: specs.delete - kind: snippet language: javascript code: | diff --git a/docs/getting_started.md b/docs/getting_started.md index d4dfa5fd..a507b92a 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -40,7 +40,7 @@ Settings can be modified using the `.uniflow.toml` file or system environment va | `database.url` | `DATABASE.URL` | `mem://` or `mongodb://` | | `database.name` | `DATABASE.NAME` | - | | `collection.charts` | `COLLECTION.CHARTS` | `charts` | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | If you are using [MongoDB](https://www.mongodb.com/), enable [Change Streams](https://www.mongodb.com/docs/manual/changeStreams/) to track resource changes in real time. This requires setting up a [replica set](https://www.mongodb.com/docs/manual/replication/). @@ -104,7 +104,7 @@ The `start` command executes all node specifications in the specified namespace. If the namespace is empty, you can provide an initial node specification using the `--from-specs` flag: ```sh -./dist/uniflow start --namespace default --from-specs examples/nodes.yaml +./dist/uniflow start --namespace default --from-specs examples/specs.yaml ``` You can specify an initial secrets file with the `--from-secrets` flag: @@ -128,7 +128,7 @@ Charts can be initialized using the `--from-charts` flag: The `apply` command applies the contents of a specified file to the namespace. If no namespace is specified, the `default` namespace is used. ```sh -./dist/uniflowctl apply nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl apply nodes --namespace default --filename examples/specs.yaml ``` To apply secrets: @@ -148,7 +148,7 @@ To apply charts: The `delete` command removes all resources defined in the specified file. If no namespace is specified, the `default` namespace is used. ```sh -./dist/uniflowctl delete nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl delete nodes --namespace default --filename examples/specs.yaml ``` To delete secrets: @@ -189,7 +189,7 @@ To modify node specifications via the HTTP API, set up workflows accordingly. Yo ```yaml kind: native -opcode: nodes.create # or nodes.read, nodes.update, nodes.delete +opcode: specs.create # or specs.read, specs.update, specs.delete ``` Refer to the [workflow examples](../examples/system.yaml) to get started. If needed, you can add authentication and authorization processes. These runtime control workflows are typically defined in the `system` namespace. diff --git a/docs/getting_started_kr.md b/docs/getting_started_kr.md index 04c97b8f..4c301101 100644 --- a/docs/getting_started_kr.md +++ b/docs/getting_started_kr.md @@ -40,7 +40,7 @@ make build | `database.url` | `DATABASE.URL` | `mem://` λ˜λŠ” `mongodb://` | | `database.name` | `DATABASE.NAME` | - | | `collection.charts` | `COLLECTION.CHARTS` | `charts` | -| `collection.nodes` | `COLLECTION.NODES` | `nodes` | +| `collection.specs` | `COLLECTION.SPECS` | `nodes` | | `collection.secrets` | `COLLECTION.SECRETS` | `secrets` | λ§Œμ•½ [MongoDB](https://www.mongodb.com/)λ₯Ό μ‚¬μš©ν•œλ‹€λ©΄, λ¦¬μ†ŒμŠ€μ˜ λ³€κ²½ 사항을 μ‹€μ‹œκ°„μœΌλ‘œ μΆ”μ ν•˜κΈ° μœ„ν•΄ [λ³€κ²½ 슀트림](https://www.mongodb.com/docs/manual/changeStreams/)을 ν™œμ„±ν™”ν•΄μ•Ό ν•©λ‹ˆλ‹€. 이λ₯Ό μœ„ν•΄μ„œλŠ” [볡제 μ„ΈνŠΈ](https://www.mongodb.com/docs/manual/replication/) 섀정이 ν•„μš”ν•©λ‹ˆλ‹€. @@ -105,7 +105,7 @@ pong# λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ λΉ„μ–΄ μžˆμ„ 경우, 초기 λ…Έλ“œ λͺ…μ„Έλ₯Ό `--from-specs` ν”Œλž˜κ·Έλ‘œ μ œκ³΅ν•  수 μžˆμŠ΅λ‹ˆλ‹€: ```sh -./dist/uniflow start --namespace default --from-specs examples/nodes.yaml +./dist/uniflow start --namespace default --from-specs examples/specs.yaml ``` 초기 μ‹œν¬λ¦Ώ νŒŒμΌμ€ `--from-secrets` ν”Œλž˜κ·Έλ‘œ μ„€μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€: @@ -128,7 +128,7 @@ pong# `apply` λͺ…λ Ήμ–΄λŠ” μ§€μ •λœ 파일 λ‚΄μš©μ„ λ„€μž„μŠ€νŽ˜μ΄μŠ€μ— μ μš©ν•©λ‹ˆλ‹€. λ„€μž„μŠ€νŽ˜μ΄μŠ€λ₯Ό μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ 기본적으둜 `default` λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ μ‚¬μš©λ©λ‹ˆλ‹€. ```sh -./dist/uniflowctl apply nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl apply nodes --namespace default --filename examples/specs.yaml ``` μ‹œν¬λ¦Ώμ„ μ μš©ν•˜λ €λ©΄: @@ -148,7 +148,7 @@ pong# `delete` λͺ…λ Ήμ–΄λŠ” μ§€μ •λœ νŒŒμΌμ— μ •μ˜λœ λͺ¨λ“  λ¦¬μ†ŒμŠ€λ₯Ό μ‚­μ œν•©λ‹ˆλ‹€. λ„€μž„μŠ€νŽ˜μ΄μŠ€λ₯Ό μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ 기본적으둜 `default` λ„€μž„μŠ€νŽ˜μ΄μŠ€κ°€ μ‚¬μš©λ©λ‹ˆλ‹€. ```sh -./dist/uniflowctl delete nodes --namespace default --filename examples/nodes.yaml +./dist/uniflowctl delete nodes --namespace default --filename examples/specs.yaml ``` μ‹œν¬λ¦Ώμ„ μ‚­μ œν•˜λ €λ©΄: @@ -189,7 +189,7 @@ HTTP APIλ₯Ό 톡해 λ…Έλ“œ λͺ…μ„Έλ₯Ό μˆ˜μ •ν•˜λ €λ©΄, κ΄€λ ¨ μ›Œν¬ν”Œλ‘œμš°λ₯Ό ```yaml kind: native -opcode: nodes.create # λ˜λŠ” nodes.read, nodes.update, nodes.delete +opcode: specs.create # λ˜λŠ” specs.read, specs.update, specs.delete ``` μ‹œμž‘ν•˜λ €λ©΄ [μ›Œν¬ν”Œλ‘œμš° 예제](../examples/system.yaml)λ₯Ό μ°Έκ³ ν•˜μ„Έμš”. ν•„μš”ν•œ 경우, 인증 및 κΆŒν•œ 관리 ν”„λ‘œμ„ΈμŠ€λ₯Ό μΆ”κ°€ν•  수 μžˆμŠ΅λ‹ˆλ‹€. μ΄λŸ¬ν•œ λŸ°νƒ€μž„ μ œμ–΄ μ›Œν¬ν”Œλ‘œμš°λŠ” 보톡 `system` λ„€μž„μŠ€νŽ˜μ΄μŠ€μ— μ •μ˜λ©λ‹ˆλ‹€. diff --git a/examples/system.yaml b/examples/system.yaml index b2abb9d1..17db63b0 100644 --- a/examples/system.yaml +++ b/examples/system.yaml @@ -14,16 +14,16 @@ name: router routes: - method: POST - path: /v1/nodes + path: /v1/specs port: out[0] - method: GET - path: /v1/nodes + path: /v1/specs port: out[1] - method: PATCH - path: /v1/nodes + path: /v1/specs port: out[2] - method: DELETE - path: /v1/nodes + path: /v1/specs port: out[3] - method: POST path: /v1/secrets @@ -51,16 +51,16 @@ port: out[11] ports: out[0]: - - name: nodes_create + - name: specs_create port: in out[1]: - - name: nodes_read + - name: specs_read port: in out[2]: - - name: nodes_update + - name: specs_update port: in out[3]: - - name: nodes_delete + - name: specs_delete port: in out[4]: - name: secrets_create @@ -88,13 +88,13 @@ port: in - kind: block - name: nodes_create + name: specs_create specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.create + opcode: specs.create - kind: snippet language: javascript code: | @@ -106,13 +106,13 @@ } - kind: block - name: nodes_read + name: specs_read specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.read + opcode: specs.read - kind: snippet language: javascript code: | @@ -124,13 +124,13 @@ } - kind: block - name: nodes_update + name: specs_update specs: - kind: snippet language: cel code: 'has(self.body) ? self.body : null' - kind: native - opcode: nodes.update + opcode: specs.update - kind: snippet language: javascript code: | @@ -142,13 +142,13 @@ } - kind: block - name: nodes_delete + name: specs_delete specs: - kind: snippet language: json code: 'null' - kind: native - opcode: nodes.delete + opcode: specs.delete - kind: snippet language: javascript code: | diff --git a/ext/docs/native_node.md b/ext/docs/native_node.md index 3fbc2fc4..da4a427c 100644 --- a/ext/docs/native_node.md +++ b/ext/docs/native_node.md @@ -20,10 +20,10 @@ code: 'has(self.body) ? self.body : null' ports: out: - - name: nodes_create + - name: specs_create port: in - kind: native - name: nodes_create - opcode: nodes.create + name: specs_create + opcode: specs.create ``` diff --git a/ext/docs/native_node_kr.md b/ext/docs/native_node_kr.md index dfeba90a..c17744dd 100644 --- a/ext/docs/native_node_kr.md +++ b/ext/docs/native_node_kr.md @@ -20,10 +20,10 @@ code: 'has(self.body) ? self.body : null' ports: out: - - name: nodes_create + - name: specs_create port: in - kind: native - name: nodes_create - opcode: nodes.create + name: specs_create + opcode: specs.create ```