mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-23 15:11:36 +00:00
fix examples
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user