Documentation ¶
Index ¶
- type Client
- func (c *Client) VolumeCreate(lr *types.VolumeCreateRequest) (reply *types.Volume, err error)
- func (c *Client) VolumeInspect(instanceID string) (reply *types.Volume, err error)
- func (c *Client) VolumeLabel(lr *types.VolumeLabelRequest) (reply *types.Volume, err error)
- func (c *Client) VolumeLabelsRemove(lr *types.VolumeLabelsRemoveRequest) (reply *types.Volume, err error)
- func (c *Client) VolumeOffer(offer *types.VolumeOfferRequest) (reply *types.Volume, err error)
- func (c *Client) VolumeOfferRevoke(offer *types.VolumeOfferRevokeRequest) (reply *types.Volume, err error)
- func (c *Client) VolumeRemove(volumeID string) (err error)
- func (c *Client) Volumes() (reply []*types.Volume, err error)
- func (c *Client) VolumesAll() (reply []*types.Volume, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // HTTP is the underlying HTTP client. Client *http.Client // Host is the host[:port] of the remote libStorage API. Host string // LogRequests is a flag indicating whether or not to log HTTP requests. LogRequests bool // LogResponses is a flag indicating whether or not to log HTTP responses. LogResponses bool // Headers are headers to send with each HTTP request. Headers http.Header // ServerName returns the name of the server to which the client is // connected. This is not the same as the host name, rather it's the // randomly generated name the server creates for unique identification // when the server starts for the first time. This value is updated // by every request to the server that returns the server name header // as part of its response. ServerName string }
Client is the libStorage API client.
func (*Client) VolumeCreate ¶
VolumeCreate create a volume
func (*Client) VolumeInspect ¶
VolumeInspect will inspect a specific volume
func (*Client) VolumeLabel ¶
VolumeLabel creates labels on a volume
func (*Client) VolumeLabelsRemove ¶
func (c *Client) VolumeLabelsRemove(lr *types.VolumeLabelsRemoveRequest) (reply *types.Volume, err error)
VolumeLabelsRemove removes labels from a volume
func (*Client) VolumeOffer ¶
VolumeOffer will advertise a volume to schedulers
func (*Client) VolumeOfferRevoke ¶
func (c *Client) VolumeOfferRevoke(offer *types.VolumeOfferRevokeRequest) (reply *types.Volume, err error)
VolumeOfferRevoke will revoke an offer from schedulers
func (*Client) VolumeRemove ¶
VolumeRemove removes a volume
Click to show internal directories.
Click to hide internal directories.