cloudgo

package module
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 12 Imported by: 1

README

cloud-go

Cloud API Go Client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttemptGenericError added in v0.8.7

func AttemptGenericError(swaggerErr error) error

AttemptGenericError can be used for trying to extract our default HTTPErrorResponse from any error response returned by the generated swagger client (which always has a specific type).

This is useful for printing out errors nicely without having to implement big error type switches.

The function returns the original error when the error does not contain a HTTPErrorResponse.

func NewClient

func NewClient(rawurl, token, hmac string) (*client.Cloud, error)

NewClient creates a new client for accessing the cloud-api

Types

This section is empty.

Jump to

Keyboard shortcuts

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