This repository was archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
278 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
layout: post | ||
title: "v0.1.20 Dispatch Release" | ||
year: 2018 | ||
--- | ||
|
||
# v0.1.20 Dispatch Release | ||
|
||
[Download v0.1.20](https://github.com/vmware/dispatch/releases/tag/v0.1.20) | ||
|
||
|
||
## Last/Follow Support in CLI for Function Runs | ||
|
||
It can be a pain to track the output of function runs, especially if they are executed asynchronously or via an | ||
event subscription. There can often me hundreds or more executions for a single function that's been running for | ||
a while. In order to make developing and debugging a little easier the `--last` and `--follow` options have been | ||
added to the CLI as a convenience: | ||
|
||
``` | ||
$ dispatch get run --json --last | ||
``` | ||
|
||
Simply returns the last function execution. Adding the function name, filters the result by function name: | ||
|
||
``` | ||
$ dispatch get run [function name] --json --last | ||
``` | ||
|
||
To get a stream of function executions as they happen, use the `--follow` option: | ||
|
||
``` | ||
$ dispatch get run [function name] --json --follow | ||
``` | ||
|
||
The CLI will poll every second for new executions. | ||
|
||
## API Gateway Endpoints Now Namespaced with Org Name | ||
|
||
Now that Dispatch supports multiple organizations, the API Gateway needs to organization aware. In order to ensure | ||
that all API paths defined are unique per-organization, the organization name is prepended to the path. So if the | ||
following path is defined: | ||
|
||
``` | ||
$ dispatch create api get-hello hello --method GET --path /hello | ||
``` | ||
|
||
The created path will show the organization name: | ||
|
||
``` | ||
$ dispatch get api | ||
NAME | FUNCTION | PROTOCOL | METHOD | DOMAIN | PATH | AUTH | STATUS | ENABLED | ||
-------------------------------------------------------------------------------------------------- | ||
get-hello | hello | http | GET | | /dispatch/hello | public | READY | true | ||
| | https | | | | | | | ||
-------------------------------------------------------------------------------------------------- | ||
``` | ||
|
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