org

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENVIRONMENT_URI string = "/environments"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	//{"error_id":"a814890f-e0cf-4ae5-a78a-39040ed51a35","errors":[{"code":99001,"message":"No valid auth credentials found."}]}
	ErrorId string      `json:"error_id"`
	Errors  *[]AppError `json:"errors"`
}

type AppError

type AppError struct {
	Code    string `json:"code"`
	Message string `json:"errors"`
}

type Environment

type Environment struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	OrgId string `json:"orgId"`
}

func GetEnvironments

func GetEnvironments(baseUrl string, accessToken *string) ([]Environment, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL