Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingClient = errors.New("http client not set") ErrMissingWorkspace = errors.New("missing workspace name") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Caller *common.HTTPClient
}
Client params sets up authenticated proxy HTTP client This can be reused among other param builders by composition.
func (*Client) ValidateParams ¶
func (*Client) WithAuthenticatedClient ¶
func (p *Client) WithAuthenticatedClient(client common.AuthenticatedHTTPClient)
type Module ¶
type Module struct {
Suffix string
}
Module params adds suffix to URL controlling API versions. This is relevant where there are several APIs for different product areas or sub-products, and the APIs are versioned differently or have different ways of constructing URLs from object names.
func (*Module) ValidateParams ¶
func (*Module) WithModule ¶
type ParamAssurance ¶
type ParamAssurance interface {
ValidateParams() error
}
ParamAssurance checks that param data is valid Every param instance must implement it.
Click to show internal directories.
Click to hide internal directories.