Documentation ¶
Overview ¶
Package client contains types and functions for interacting with the control-plane API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
IsNotFound returns true if the provided error is of type APIError and its status is equal to http.StatusNotFound
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
The Client type is used to perform requests against the control-plane API.
func New ¶
New returns a new instance of the Client type that will perform requests against the API at the given base URL. The provided context.Context is checked for the presence of an oauth token. If it exists, the underlying HTTP client is bootstrapped with an oauth token that authenticates outbound requests.
Click to show internal directories.
Click to hide internal directories.