fix examples

This commit is contained in:
Asim Aslam
2021-12-16 19:47:04 +00:00
parent a6c66fb76a
commit 873ba7f939
3 changed files with 0 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ func DeleteAfunction() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN")) functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Delete(&function.DeleteRequest{ rsp, err := functionService.Delete(&function.DeleteRequest{
Name: "my-first-func", Name: "my-first-func",
Project: "tests",
}) })
fmt.Println(rsp, err) fmt.Println(rsp, err)
} }

View File

@@ -13,7 +13,6 @@ func DeployAfunction() {
rsp, err := functionService.Deploy(&function.DeployRequest{ rsp, err := functionService.Deploy(&function.DeployRequest{
Entrypoint: "helloworld", Entrypoint: "helloworld",
Name: "my-first-func", Name: "my-first-func",
Project: "tests",
Repo: "github.com/m3o/nodejs-function-example", Repo: "github.com/m3o/nodejs-function-example",
Runtime: "nodejs14", Runtime: "nodejs14",
}) })

View File

@@ -12,7 +12,6 @@ func DescribeFunctionStatus() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN")) functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Describe(&function.DescribeRequest{ rsp, err := functionService.Describe(&function.DescribeRequest{
Name: "my-first-func", Name: "my-first-func",
Project: "tests",
}) })
fmt.Println(rsp, err) fmt.Println(rsp, err)
} }