-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from suborbital/laura/update-scn-docs
- Loading branch information
Showing
43 changed files
with
4,055 additions
and
3,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ website/yarn.lock | |
**/.DS_Store | ||
|
||
.vscode | ||
.idea | ||
build | ||
dictionary.dic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
pagination_prev: null | ||
--- | ||
|
||
# Creating Runnables | ||
|
||
:::note | ||
|
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
website/docs/compute/building-functions/github-integration.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
website/docs/compute/concepts/data-plane-vs-control-plane.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
pagination_prev: null | ||
--- | ||
|
||
# Function editor | ||
|
||
The Compute code editor is available for you to embed in your application, so your users can build their functions quickly and easily: | ||
|
||
![Compute editor containing a 'Hello' function](../../assets/editor-screen.png) | ||
|
||
The editor is hosted at `https://editor.suborbital.network`, and uses URL parameters to configure its connection to your builder service. | ||
|
||
You will host the Compute builder service in your cloud infrastructure with a configured DNS name. An HTTPS connection to the builder is required to use the editor. | ||
|
||
To launch the editor, you can either [embed the editor in a frame] | ||
(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) within your own webpage, or launch it in a new tab. | ||
|
||
## Editor token | ||
|
||
To authenticate the editor for a specific user to edit their own functions,[Compute's Administrative API provides an API to create an `editor token` ] | ||
(https://suborbital-compute.readme.io/reference/gettoken) for a given function. | ||
|
||
## Configuration | ||
|
||
The editor is configured with URL parameters. Here's an example: | ||
|
||
`https://editor.suborbital.network?builder=https://builder.acmeco.com&token=K78as0aslwi30l8h5lbF4lS7&ident=com.suborbital.customer&fn=add-record` | ||
|
||
Let's break it down: | ||
|
||
**Builder**: `?builder=https://builder.acmeco.com` | ||
|
||
* This is the URL of your public builder service | ||
|
||
**Token**: `&token=K78as0aslwi30l8h5lbF4lS7` | ||
|
||
* The editor token retrieved from the control-plane service | ||
|
||
**Ident**: `&ident=com.suborbital.customer` | ||
|
||
* The identifier used when addressing your specific user, see [Fully-qualified function names](./fully-qualified-function-names.md) for more details | ||
|
||
**Fn**: `&fn=add-record` | ||
|
||
* The specific function name that the editor should load | ||
|
||
**Namespace** (optional): `&namespace=default` | ||
|
||
* The function namespace (if not included, the `default` namespace is used, see [Namespaces](docs/compute/customizing-functions/namespaces.md) for more details) | ||
|
||
**Template** (optional): `&template=assemblyscript` | ||
|
||
* The language template used for new functions. Check out our [supported languages](../../reactr/language-support.md)! | ||
|
||
If the `fn` in question does not exist, the editor will automatically create a new function. | ||
|
||
## Building and deploying | ||
|
||
Once the user has edited their function, the `build` button in the top right will allow them to check to ensure the function builds. The builder service will build the function and then return the results to the console area. | ||
|
||
Assuming the build succeeds, the user can choose to deploy the latest version with the `deploy` button. If they choose not to deploy, the draft will be available to them later. | ||
|
||
Until the user deploys the function, it will remain at the previous version. The [API Reference](https://suborbital-compute.readme.io/reference/api-reference) gives you details about the draft and active versions of any function. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
website/docs/compute/concepts/namespaces.md → ...mpute/customizing-functions/namespaces.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...loud-deployment/configure-capabilities.md → ...loud-deployment/configure-capabilities.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ute/cloud-deployment/configure-storage.md → ...ent/cloud-deployment/configure-storage.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.