Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Create(url string, request Request, response Response) error
- func (c *Client) Delete(url string) error
- func (c *Client) Do(request *http.Request) (*http.Response, error)
- func (c *Client) Get(url string, response Response) error
- func (c *Client) Patch(url string, request Request, response Response) error
- func (c *Client) Update(url string, request Request, response Response) error
- type Config
- type Request
- type Response
Constants ¶
View Source
const ( // DefaultHost is the default Host. DefaultHost string = "https://<your_org>.tmc.cloud.vmware.com" // DefaultBasePath is the default BasePath. DefaultBasePath string = "/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *Config // contains filtered or unexported fields }
Client is the http client implementation.
func NewClientWithDefaultTransport ¶ added in v1.1.4
func NewClientWithDefaultTransport() *Client
NewClientWithDefaultTransport is intended primarily for testing, as httpmock requires a default transport object be used.
type Config ¶
Config contains the transport related info.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *Config
DefaultTransportConfig creates a Config with default values.
func (*Config) AddHeaders ¶
WithHeader overrides the default header.
func (*Config) WithBasePath ¶
WithBasePath overrides the default basePath.
Click to show internal directories.
Click to hide internal directories.