Documentation ¶
Index ¶
- Constants
- func LabelToLabelInput(key string, value string) cloudapi.LabelInput
- func LabelsToLabelInput(labels map[string]string) []cloudapi.LabelInput
- func NewClient(ctx context.Context) (*cloudapi.ClientWithResponses, error)
- func NewClientFromToken(address string, token string) (*cloudapi.ClientWithResponses, error)
- type APIVersion
- type Doer
- type HttpError
- type ResponseBody
Constants ¶
View Source
const (
ApiRevisionExt = "x-revision"
)
Variables ¶
This section is empty.
Functions ¶
func LabelToLabelInput ¶
func LabelToLabelInput(key string, value string) cloudapi.LabelInput
func LabelsToLabelInput ¶
func LabelsToLabelInput(labels map[string]string) []cloudapi.LabelInput
func NewClientFromToken ¶
func NewClientFromToken(address string, token string) (*cloudapi.ClientWithResponses, error)
Types ¶
type APIVersion ¶
func GetCloudApiVersion ¶
func GetCloudApiVersion(apiUrl string) (APIVersion, error)
func GetLocalApiVersion ¶
func GetLocalApiVersion() (APIVersion, error)
type ResponseBody ¶
type ResponseBody struct {
Message string `json:"message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.