Files
m3o-go/examples/function/describe/describeFunctionStatus.go
2021-10-29 06:38:17 +00:00

19 lines
367 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/go.m3o.com/function"
)
// Get the info for a deployed function
func DescribeFunctionStatus() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Describe(&function.DescribeRequest{
Name: "my-first-func",
Project: "tests",
})
fmt.Println(rsp, err)
}