Skip to content

Commit

Permalink
FAAS-288: FaaS API Keys support & Full FaaS support in CLI (#85)
Browse files Browse the repository at this point in the history
* 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
shelomentsevd authored Oct 23, 2023
1 parent 7b3e49f commit 9f939fd
Show file tree
Hide file tree
Showing 13 changed files with 1,812 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea
.vscode
./gcoreclient
.go/
16 changes: 16 additions & 0 deletions client/faas/v1/client/client.go
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")
}
Loading

0 comments on commit 9f939fd

Please sign in to comment.