Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient communicates with the API and parses the results
type Client ¶
type ClientOption ¶
type ClientOption func(*APIClient)
ClientOption applies options to APIClient
func WithInsecure ¶
func WithInsecure() ClientOption
WithInsecure disables TLS certificate validation
func WithMaxConcurrentRequests ¶
func WithMaxConcurrentRequests(max uint) ClientOption
WithMaxConcurrentRequests defines the maximum number of GET requests sent against API concurrently
type DummyClient ¶
type DummyClient struct {
// contains filtered or unexported fields
}
func (*DummyClient) Get ¶
func (cl *DummyClient) Get(context context.Context, ressource string, obj interface{}) error
Get parses the dummy string for an given ressource and unmarshals the json
func (*DummyClient) HostName ¶
func (cl *DummyClient) HostName() string
func (*DummyClient) SetResponse ¶
func (cl *DummyClient) SetResponse(ressource string, value string)
SetResponse sets an dummy response for an ressource path
Click to show internal directories.
Click to hide internal directories.