Documentation
¶
Index ¶
- type Attributes
- type Authenticator
- type BasicAuthenticator
- type Client
- func (c *Client) DELETE() (*Feed, *DetailedResponse, error)
- func (c *Client) GET() (*Feed, *DetailedResponse, error)
- func (c *Client) GetBaseURL() string
- func (c *Client) ManagedSystems() *ManagedSystems
- func (c *Client) POST() (*Feed, *DetailedResponse, error)
- func (c *Client) PUT() (*Feed, *DetailedResponse, error)
- func (c *Client) SetBaseURL(url string)
- type ClientParams
- type Content
- type DetailedResponse
- type Entry
- type Feed
- type ManagedSystem
- type ManagedSystems
- type Resource
- type RoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Authenticator ¶
type BasicAuthenticator ¶
type BasicAuthenticator struct {
UserName string
Password string
BaseURL string
Client *http.Client
}
func (*BasicAuthenticator) Authenticate ¶
func (a *BasicAuthenticator) Authenticate(request *http.Request) error
func (*BasicAuthenticator) GetBaseURL ¶
func (a *BasicAuthenticator) GetBaseURL() string
func (*BasicAuthenticator) SetClient ¶
func (a *BasicAuthenticator) SetClient(client *http.Client)
func (*BasicAuthenticator) Validate ¶
func (a *BasicAuthenticator) Validate() error
type Client ¶
type Client struct {
// Authenticator for the client
Authenticator Authenticator
// No need to set -- for testing only
HTTPClient *http.Client
// contains filtered or unexported fields
}
Client contains parameters for configuring the SDK.
func NewClient ¶
func NewClient(authenticator Authenticator, param ClientParams) *Client
func (*Client) GetBaseURL ¶
func (*Client) ManagedSystems ¶
func (c *Client) ManagedSystems() *ManagedSystems
func (*Client) SetBaseURL ¶
type ClientParams ¶
type Content ¶
type Content struct {
atom.Text
ManagedSystem ManagedSystem `xml:"ManagedSystem"`
}
type DetailedResponse ¶
type DetailedResponse struct {
// The HTTP status code associated with the response.
StatusCode int
// The HTTP headers contained in the response.
Headers http.Header
// Result - this field will contain the result of the operation (obtained from the response body).
Result *Feed
// RawResult field will contain the raw response body.
RawResult []byte
}
DetailedResponse holds the response information received from the server.
type ManagedSystem ¶
type ManagedSystem struct {
ActivatedLevel string `xml:"ActivatedLevel"`
}
type ManagedSystems ¶
type ManagedSystems struct {
// contains filtered or unexported fields
}
func (*ManagedSystems) GET ¶
func (m *ManagedSystems) GET() (*Feed, *DetailedResponse, error)
func (*ManagedSystems) UUID ¶
func (m *ManagedSystems) UUID(id string) *ManagedSystems
type RoundTripper ¶
type RoundTripper struct {
Proxied http.RoundTripper
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.