Documentation ¶
Index ¶
- Constants
- type API
- type Client
- func (cli *Client) API() API
- func (cli *Client) AuthenticateWithCredentials(username, password string) error
- func (cli *Client) AuthenticateWithToken(id, secret string) error
- func (cli *Client) EndAtomicBlock()
- func (cli *Client) Request(method, resource string, form request.Values, out interface{}) error
- func (cli *Client) StartAtomicBlock()
- func (cli *Client) Version() (*types.Version, error)
- type Config
- type ConfigError
Constants ¶
View Source
const ( DefaultRequestTimeout = time.Duration(30) * time.Second DefaultPoolingInterval = time.Duration(5) * time.Second )
View Source
const (
ErrConfigNoHost = ConfigError("no host specified")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithExecutor ¶
func (*Client) AuthenticateWithCredentials ¶
func (*Client) AuthenticateWithToken ¶
func (*Client) EndAtomicBlock ¶
func (cli *Client) EndAtomicBlock()
func (*Client) StartAtomicBlock ¶
func (cli *Client) StartAtomicBlock()
type Config ¶
type ConfigError ¶
type ConfigError string
func (ConfigError) Error ¶
func (e ConfigError) Error() string
Click to show internal directories.
Click to hide internal directories.