Documentation ¶
Index ¶
- type Account
- type Client
- func (c *Client) CallAPIMethod(method string, params map[string]interface{}) (*json.RawMessage, error)
- func (c *Client) GetAPIVersion() string
- func (c *Client) GetAccountByID(id int) (Account, error)
- func (c *Client) GetInitiatorByID(id string) (Initiator, error)
- func (c *Client) GetVolumeAccessGroupByID(id string) (VolumeAccessGroup, error)
- func (c *Client) GetVolumeByID(id string) (Volume, error)
- func (c *Client) SetAPIVersion(apiVersion string)
- type GetAccountByIDRequest
- type GetAccountByIDResult
- type Initiator
- type InitiatorResponse
- type ListInitiatorRequest
- type ListInitiatorResult
- type ListVolumeAccessGroupsRequest
- type ListVolumeAccessGroupsResult
- type ListVolumesRequest
- type ListVolumesResult
- type Volume
- type VolumeAccessGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string Username string Password string MaxConcurrentRequests int HTTPTransport http.RoundTripper // contains filtered or unexported fields }
A Client to interact with the Element API
func (*Client) CallAPIMethod ¶
func (c *Client) CallAPIMethod(method string, params map[string]interface{}) (*json.RawMessage, error)
CallAPIMethod can be used to make a request to any Element API method, receiving results as raw JSON
func (*Client) GetAPIVersion ¶
GetAPIVersion returns the API version that will be used for Element API requests
func (*Client) GetVolumeAccessGroupByID ¶
func (c *Client) GetVolumeAccessGroupByID(id string) (VolumeAccessGroup, error)
func (*Client) SetAPIVersion ¶
SetAPIVersion for the client to use for requests to the Element API
type GetAccountByIDRequest ¶
type GetAccountByIDRequest struct {
AccountID int `structs:"accountID"`
}
type GetAccountByIDResult ¶
type GetAccountByIDResult struct {
Account Account `json:"account"`
}
type InitiatorResponse ¶
type ListInitiatorRequest ¶
type ListInitiatorRequest struct {
Initiators []int `structs:"initiators"`
}
type ListInitiatorResult ¶
type ListInitiatorResult struct {
Initiators []InitiatorResponse `json:"initiators"`
}
type ListVolumeAccessGroupsRequest ¶
type ListVolumeAccessGroupsRequest struct {
VolumeAccessGroups []int `structs:"volumeAccessGroups"`
}
type ListVolumeAccessGroupsResult ¶
type ListVolumeAccessGroupsResult struct { VolumeAccessGroups []VolumeAccessGroup `json:"volumeAccessGroups"` VolumeAccessGroupsNotFound []int `json:"volumeAccessGroupsNotFound"` }
type ListVolumesRequest ¶
type ListVolumesResult ¶
type ListVolumesResult struct {
Volumes []Volume `json:"volumes"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.