Documentation ¶
Index ¶
- func IsNotFound(err error) bool
- type APIKeyAuthenticator
- type Client
- func (c *Client) Delete(ctx context.Context, path string, out interface{}) error
- func (c *Client) Get(ctx context.Context, path string, out interface{}) error
- func (c *Client) NewRequest(method string, path string, body io.Reader) (*http.Request, error)
- func (c *Client) Patch(ctx context.Context, path string, in interface{}, out interface{}) error
- func (c *Client) Post(ctx context.Context, path string, in interface{}, out interface{}) error
- type ClientAuthenticator
- type ErrNotFound
- type ErrUnexpectedStatus
- type TLSClientCertificateAuthenticator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type APIKeyAuthenticator ¶
type APIKeyAuthenticator struct {
APIKey string
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NewRequest ¶
type ClientAuthenticator ¶
type ErrNotFound ¶
type ErrNotFound struct {
URL string
}
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type ErrUnexpectedStatus ¶
func (ErrUnexpectedStatus) Error ¶
func (e ErrUnexpectedStatus) Error() string
type TLSClientCertificateAuthenticator ¶
type TLSClientCertificateAuthenticator struct { CACerts []*x509.Certificate ClientCert tls.Certificate ClientKey crypto.PrivateKey }
Click to show internal directories.
Click to hide internal directories.