Documentation
¶
Overview ¶
Package client provides a rest client to talk to the Trusty API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ HttpClient: &http.Client{}, BaseURL: defaultEndpoint, }
DefaultOptions is the default Trusty client options set
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
HttpClient netClient
BaseURL string
}
Options configures the Trusty API client
type Trusty ¶
type Trusty struct {
Options Options
}
Trusty is the main trusty client
func NewWithOptions ¶
NewWithOptions returns a new client with the dspecified options set
Click to show internal directories.
Click to hide internal directories.