Documentation
¶
Index ¶
- Constants
- func WasNotFoundError(e error) bool
- type Client
- func (c *Client) BuildRequest(method, path string, body interface{}) (*http.Request, error)
- func (c *Client) DebugLogReq(req *http.Request)
- func (c *Client) DebugLogString(str string)
- func (c *Client) ExecuteRequest(req *http.Request) (*http.Response, error)
- func (c *Client) WaitFor(description string, timeoutSeconds int, test func() (bool, error)) error
Constants ¶
View Source
const DEFAULT_MAX_RETRIES = 1
Variables ¶
This section is empty.
Functions ¶
func WasNotFoundError ¶
Used to determine if the checked resource was found or not.
Types ¶
type Client ¶
type Client struct { IdentityDomain *string UserName *string Password *string APIEndpoint *url.URL MaxRetries *int // contains filtered or unexported fields }
Client represents an authenticated compute client, with compute credentials and an api client.
func (*Client) BuildRequest ¶
This builds an http request. After calling this you need to add the authentication. Header/Cookie/etc Then call ExecuteRequest and pass in the return value of this method It is split up to add additional authentication that is Oracle API dependent.
func (*Client) DebugLogReq ¶
func (*Client) DebugLogString ¶
Log a string if debug logs are on
func (*Client) ExecuteRequest ¶
This method executes the http.Request from the BuildRequest method. It is split up to add additional authentication that is Oracle API dependent.
Click to show internal directories.
Click to hide internal directories.