undocumented

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EdgeComputeTrial = "/customer/%s/edge-compute-trial"

EdgeComputeTrial is the API endpoint for activating a compute trial.

View Source
const RequestTimeout = 5 * time.Second

RequestTimeout is the timeout for the API network request.

Variables

This section is empty.

Functions

func Get

func Get(host, path, token string, c api.HTTPClient) (data []byte, err error)

Get calls the given API endpoint and returns its response data.

Types

type APIError

type APIError struct {
	Err        error
	StatusCode int
}

APIError models a custom error for undocumented API calls.

func NewError

func NewError(err error, statusCode int) APIError

NewError returns an APIError

func (APIError) Error

func (e APIError) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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