-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAAS-288: FaaS API Keys support & Full FaaS support in CLI (#85)
* FAAS-288: Added FaaS APIKeys * FAAS-288: Adding FaaS functions, namespaces and keys to cli * FAAS-288: Fixed unit-tests for FaaS
- Loading branch information
1 parent
7b3e49f
commit 9f939fd
Showing
13 changed files
with
1,812 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
.vscode | ||
./gcoreclient | ||
.go/ |
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,16 @@ | ||
package client | ||
|
||
import ( | ||
gcorecloud "github.com/G-Core/gcorelabscloud-go" | ||
"github.com/G-Core/gcorelabscloud-go/client/common" | ||
|
||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
func NewFaaSClientV1(c *cli.Context) (*gcorecloud.ServiceClient, error) { | ||
return common.BuildClient(c, "faas/namespaces", "v1") | ||
} | ||
|
||
func NewFaaSKeysClientV1(c *cli.Context) (*gcorecloud.ServiceClient, error) { | ||
return common.BuildClient(c, "faas/keys", "v1") | ||
} |
Oops, something went wrong.