Documentation
¶
Index ¶
- func Init(edps []string) *client
- type Client
- func (c *Client) AddExtraProperty(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
- func (c *Client) CreateDock(dck *model.DockSpec) (*model.DockSpec, error)
- func (c *Client) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (c *Client) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
- func (c *Client) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (c *Client) CreateVolumeSnapshot(snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (c *Client) DeleteDock(dckID string) error
- func (c *Client) DeletePool(polID string) error
- func (c *Client) DeleteProfile(prfID string) error
- func (c *Client) DeleteVolume(volID string) error
- func (c *Client) DeleteVolumeAttachment(attachmentId string) error
- func (c *Client) DeleteVolumeSnapshot(snpID string) error
- func (c *Client) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) GetDefaultProfile() (*model.ProfileSpec, error)
- func (c *Client) GetDock(dckID string) (*model.DockSpec, error)
- func (c *Client) GetDockByPoolId(poolId string) (*model.DockSpec, error)
- func (c *Client) GetPool(polID string) (*model.StoragePoolSpec, error)
- func (c *Client) GetProfile(prfID string) (*model.ProfileSpec, error)
- func (c *Client) GetVolume(volID string) (*model.VolumeSpec, error)
- func (c *Client) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
- func (c *Client) GetVolumeSnapshot(snpID string) (*model.VolumeSnapshotSpec, error)
- func (c *Client) ListDocks() ([]*model.DockSpec, error)
- func (c *Client) ListExtraProperties(prfID string) (*model.ExtraSpec, error)
- func (c *Client) ListPools() ([]*model.StoragePoolSpec, error)
- func (c *Client) ListProfiles() ([]*model.ProfileSpec, error)
- func (c *Client) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (c *Client) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
- func (c *Client) ListVolumes() ([]*model.VolumeSpec, error)
- func (c *Client) RemoveExtraProperty(prfID, extraKey string) error
- func (c *Client) UpdateDock(dckID, name, desp string) (*model.DockSpec, error)
- func (c *Client) UpdatePool(polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (c *Client) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
- func (c *Client) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) UpdateVolumeAttachment(attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (c *Client) UpdateVolumeSnapshot(snpID string, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client
func (*Client) AddExtraProperty ¶
AddExtraProperty
func (*Client) CreateDock ¶
CreateDock
func (*Client) CreatePool ¶
func (c *Client) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
CreatePool
func (*Client) CreateProfile ¶
func (c *Client) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
CreateProfile
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
CreateVolume
func (*Client) CreateVolumeAttachment ¶
func (c *Client) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*Client) CreateVolumeSnapshot ¶
func (c *Client) CreateVolumeSnapshot(snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*Client) DeleteVolumeAttachment ¶
DeleteVolumeAttachment
func (*Client) DeleteVolumeSnapshot ¶
DeleteVolumeSnapshot
func (*Client) ExtendVolume ¶ added in v0.1.1
func (c *Client) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
ExtendVolume ...
func (*Client) GetDefaultProfile ¶
func (c *Client) GetDefaultProfile() (*model.ProfileSpec, error)
GetDefaultProfile
func (*Client) GetDockByPoolId ¶
GetDockByPoolId
func (*Client) GetPool ¶
func (c *Client) GetPool(polID string) (*model.StoragePoolSpec, error)
GetPool
func (*Client) GetProfile ¶
func (c *Client) GetProfile(prfID string) (*model.ProfileSpec, error)
GetProfile
func (*Client) GetVolume ¶
func (c *Client) GetVolume(volID string) (*model.VolumeSpec, error)
GetVolume
func (*Client) GetVolumeAttachment ¶
func (c *Client) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
GetVolumeAttachment
func (*Client) GetVolumeSnapshot ¶
func (c *Client) GetVolumeSnapshot(snpID string) (*model.VolumeSnapshotSpec, error)
GetVolumeSnapshot
func (*Client) ListExtraProperties ¶
ListExtraProperties
func (*Client) ListProfiles ¶
func (c *Client) ListProfiles() ([]*model.ProfileSpec, error)
ListProfiles
func (*Client) ListVolumeAttachments ¶
func (c *Client) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*Client) ListVolumeSnapshots ¶
func (c *Client) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
ListVolumeSnapshots
func (*Client) ListVolumes ¶
func (c *Client) ListVolumes() ([]*model.VolumeSpec, error)
ListVolumes
func (*Client) RemoveExtraProperty ¶
RemoveExtraProperty
func (*Client) UpdateDock ¶
UpdateDock
func (*Client) UpdatePool ¶
func (c *Client) UpdatePool(polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*Client) UpdateProfile ¶
func (c *Client) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
UpdateProfile
func (*Client) UpdateVolume ¶
func (c *Client) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume ...
func (*Client) UpdateVolumeAttachment ¶
func (c *Client) UpdateVolumeAttachment(attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment
func (*Client) UpdateVolumeSnapshot ¶
func (c *Client) UpdateVolumeSnapshot(snpID string, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot
Click to show internal directories.
Click to hide internal directories.