{"modulePath":"github.com/otterize/otterize-cli","version":"v1.0.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package restapi\n\n## Constants\n\n```go\nconst (\n\tApiRevisionExt = \"x-revision\"\n)\n```\n\n## Variables\n\n```go\nvar ErrNoOrganization = errors.New(\"no organization exists in config or as parameter\")\n```\n\n## Functions\n\n```go\nfunc LabelToLabelInput(key string, value string) cloudapi.LabelInput\n```\n\n```go\nfunc LabelsToLabelInput(labels map[string]string) []cloudapi.LabelInput\n```\n\n```go\nfunc ResolveOrgID() (string, bool)\n```\n\n## Types\n\n```go\ntype APIVersion struct {\n\tVersion  string\n\tRevision string\n}\n```\n\n```go\nfunc GetLocalAPIVersion() (APIVersion, error)\n```\n\n```go\ntype Client struct {\n\t*cloudapi.ClientWithResponses\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(ctx context.Context) (*Client, error)\n```\n\n```go\nfunc NewClientFromToken(apiRoot string, token string, orgId string) (*Client, error)\n```\n\n```go\nfunc (c *Client) GetAPIVersion() (APIVersion, error)\n```\n\n```go\ntype Doer interface {\n\tDo(req *http.Request) (*http.Response, error)\n}\n```\n\n```go\ntype HttpError struct {\n\tStatusCode int\n\tMessage    string\n}\n```\n\n```go\nfunc (err *HttpError) Error() string\n```\n\n```go\ntype ResponseBody struct {\n\tErrors []struct {\n\t\tMessage string `json:\"message\"`\n\t} `json:\"errors\"`\n}\n```\n\n","path":"github.com/otterize/otterize-cli/src/pkg/cloudclient/restapi","name":"restapi","synopsis":"","isRedistributable":true}
