Versions in this module Expand all Collapse all v7 v7.0.0 Feb 14, 2024 Changes in this version + const APIBaseURL + const APIVersion + const EnvDebugAPIBaseURL + const EnvDebugSkipCertificateVerify + const ErrorTypeError + const ErrorTypeProblem + const Version + func NewDefaultHTTPClient() *http.Client + func NewDefaultHTTPTransport() http.RoundTripper + type Client struct + UserAgent string + func New(username, password string, c ...ConfigFn) *Client + func (c *Client) Delete(ctx context.Context, path string) ([]byte, error) + func (c *Client) Do(r *http.Request) ([]byte, error) + func (c *Client) Get(ctx context.Context, path string) ([]byte, error) + func (c *Client) Patch(ctx context.Context, path string, body []byte) ([]byte, error) + func (c *Client) Post(ctx context.Context, path string, body []byte) ([]byte, error) + func (c *Client) Put(ctx context.Context, path string, body []byte) ([]byte, error) + type ConfigFn func(o *config) + func WithBaseURL(baseURL string) ConfigFn + func WithHTTPClient(httpClient *http.Client) ConfigFn + func WithInsecureSkipVerify() ConfigFn + func WithTimeout(timeout time.Duration) ConfigFn + type Error struct + ErrorCode int + ErrorMessage string + ResponseBody []byte + Type ErrorType + func (e *Error) Error() string + type ErrorType int Other modules containing this package github.com/UpCloudLtd/upcloud-go-api/v4 github.com/UpCloudLtd/upcloud-go-api/v5 github.com/UpCloudLtd/upcloud-go-api/v6 github.com/UpCloudLtd/upcloud-go-api/v8