Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ExportCreate(pool, vol, initiatorWWN string, lun int32) error
- func (c *Client) ExportDestroy(pool, vol, initiatorWWN string) error
- func (c *Client) ExportList() ([]Export, error)
- func (c *Client) GetFirstAvailableLun() (int32, error)
- func (c *Client) PoolList() ([]Pool, error)
- func (c *Client) VolCopy(pool, orig, name string, size int64) error
- func (c *Client) VolCreate(pool, name string, size int64) error
- func (c *Client) VolDestroy(pool, name string) error
- func (c *Client) VolList(pool string) ([]Volume, error)
- func (c *Client) VolResize(pool, name string, size int64) error
- type Error
- type Export
- type Pool
- type Volume
Constants ¶
View Source
const ( InvalidError = -1 NameConflictError = -50 CloneNameExistsError = -51 InitiatorExistsError = -52 FSExistsError = -53 VolumeNotFoundError = -103 FSNotFoundError = -104 InvalidPoolError = -110 SSNotFoundError = -112 VolumeExportNotFoundError = -151 VolumeGroupNotFoundError = -152 NotSupportedError = -153 AccessGroupNotFoundError = -200 UnexpectedExitCodeError = -303 VolumeMaskedError = -303 NFSExportNotFoundError = -400 NFSNotSupportedError = -401 NoFreeHostLunIdError = -1000 InvalidArgumentError = -32602 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExportCreate ¶
func (*Client) ExportDestroy ¶
func (*Client) ExportList ¶
func (*Client) GetFirstAvailableLun ¶
func (*Client) VolDestroy ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a wrapper struct arround jsonrpc2.Error that helps getting information about server errors.
func UnwrapError ¶
UnwrapError transform an error into an Error if possible.
Click to show internal directories.
Click to hide internal directories.