Documentation ¶
Index ¶
- func AuthorizeProjectContext(ctx *c.Context, tenantId string) bool
- func Init(edps []string) *client
- func IsAdminContext(ctx *c.Context) bool
- type Client
- func (c *Client) AddCustomProperty(ctx *c.Context, prfID string, ext model.CustomPropertiesSpec) (*model.CustomPropertiesSpec, error)
- func (c *Client) CreateDock(ctx *c.Context, dck *model.DockSpec) (*model.DockSpec, error)
- func (c *Client) CreateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)
- func (c *Client) CreateFileShareAcl(ctx *c.Context, fshare *model.FileShareAclSpec) (*model.FileShareAclSpec, error)
- func (c *Client) CreateFileShareSnapshot(ctx *c.Context, snp *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)
- func (c *Client) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (c *Client) CreateProfile(ctx *c.Context, prf *model.ProfileSpec) (*model.ProfileSpec, error)
- func (c *Client) CreateReplication(ctx *c.Context, r *model.ReplicationSpec) (*model.ReplicationSpec, error)
- func (c *Client) CreateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) CreateVolumeAttachment(ctx *c.Context, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (c *Client) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (c *Client) CreateVolumeSnapshot(ctx *c.Context, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (c *Client) DeleteDock(ctx *c.Context, dckID string) error
- func (c *Client) DeleteFileShare(ctx *c.Context, fileshareID string) error
- func (c *Client) DeleteFileShareAcl(ctx *c.Context, aclID string) error
- func (c *Client) DeleteFileShareSnapshot(ctx *c.Context, snpID string) error
- func (c *Client) DeletePool(ctx *c.Context, polID string) error
- func (c *Client) DeleteProfile(ctx *c.Context, prfID string) error
- func (c *Client) DeleteReplication(ctx *c.Context, replicationId string) error
- func (c *Client) DeleteVolume(ctx *c.Context, volID string) error
- func (c *Client) DeleteVolumeAttachment(ctx *c.Context, attachmentId string) error
- func (c *Client) DeleteVolumeGroup(ctx *c.Context, volumeGroupId string) error
- func (c *Client) DeleteVolumeSnapshot(ctx *c.Context, snpID string) error
- func (c *Client) ExtendVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) FindAttachmentValue(k string, p *model.VolumeAttachmentSpec) string
- func (c *Client) FindDockValue(k string, d *model.DockSpec) string
- func (c *Client) FindFileShareSnapshotsValue(k string, p *model.FileShareSnapshotSpec) string
- func (c *Client) FindFileShareValue(k string, p *model.FileShareSpec) string
- func (c *Client) FindPoolValue(k string, p *model.StoragePoolSpec) string
- func (c *Client) FindProfileValue(k string, p *model.ProfileSpec) string
- func (c *Client) FindSnapshotsValue(k string, p *model.VolumeSnapshotSpec) string
- func (c *Client) FindVolumeValue(k string, p *model.VolumeSpec) string
- func (c *Client) GetDefaultProfile(ctx *c.Context) (*model.ProfileSpec, error)
- func (c *Client) GetDefaultProfileFileShare(ctx *c.Context) (*model.ProfileSpec, error)
- func (c *Client) GetDock(ctx *c.Context, dckID string) (*model.DockSpec, error)
- func (c *Client) GetDockByPoolId(ctx *c.Context, poolId string) (*model.DockSpec, error)
- func (c *Client) GetFileShare(ctx *c.Context, fshareID string) (*model.FileShareSpec, error)
- func (c *Client) GetFileShareAcl(ctx *c.Context, aclID string) (*model.FileShareAclSpec, error)
- func (c *Client) GetFileShareSnapshot(ctx *c.Context, snpID string) (*model.FileShareSnapshotSpec, error)
- func (c *Client) GetLimit(m map[string][]string) int
- func (c *Client) GetOffset(m map[string][]string, size int) int
- func (c *Client) GetPool(ctx *c.Context, polID string) (*model.StoragePoolSpec, error)
- func (c *Client) GetProfile(ctx *c.Context, prfID string) (*model.ProfileSpec, error)
- func (c *Client) GetReplication(ctx *c.Context, replicationId string) (*model.ReplicationSpec, error)
- func (c *Client) GetReplicationByVolumeId(ctx *c.Context, volumeId string) (*model.ReplicationSpec, error)
- func (c *Client) GetSortDir(m map[string][]string) string
- func (c *Client) GetSortKey(m map[string][]string, sortKeys []string) string
- func (c *Client) GetVolume(ctx *c.Context, volID string) (*model.VolumeSpec, error)
- func (c *Client) GetVolumeAttachment(ctx *c.Context, attachmentId string) (*model.VolumeAttachmentSpec, error)
- func (c *Client) GetVolumeGroup(ctx *c.Context, vgId string) (*model.VolumeGroupSpec, error)
- func (c *Client) GetVolumeSnapshot(ctx *c.Context, snpID string) (*model.VolumeSnapshotSpec, error)
- func (c *Client) IsInArray(e string, s []string) bool
- func (c *Client) ListAttachmentsByVolumeId(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (c *Client) ListAvailabilityZones(ctx *c.Context) ([]string, error)
- func (c *Client) ListCustomProperties(ctx *c.Context, prfID string) (*model.CustomPropertiesSpec, error)
- func (c *Client) ListDocks(ctx *c.Context) ([]*model.DockSpec, error)
- func (c *Client) ListDocksWithFilter(ctx *c.Context, m map[string][]string) ([]*model.DockSpec, error)
- func (c *Client) ListFileShareSnapshots(ctx *c.Context) ([]*model.FileShareSnapshotSpec, error)
- func (c *Client) ListFileShareSnapshotsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.FileShareSnapshotSpec, error)
- func (c *Client) ListFileShares(ctx *c.Context) ([]*model.FileShareSpec, error)
- func (c *Client) ListFileSharesAcl(ctx *c.Context) ([]*model.FileShareAclSpec, error)
- func (c *Client) ListFileSharesAclWithFilter(ctx *c.Context, m map[string][]string) ([]*model.FileShareAclSpec, error)
- func (c *Client) ListFileSharesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.FileShareSpec, error)
- func (c *Client) ListPools(ctx *c.Context) ([]*model.StoragePoolSpec, error)
- func (c *Client) ListPoolsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.StoragePoolSpec, error)
- func (c *Client) ListProfiles(ctx *c.Context) ([]*model.ProfileSpec, error)
- func (c *Client) ListProfilesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ProfileSpec, error)
- func (c *Client) ListReplication(ctx *c.Context) ([]*model.ReplicationSpec, error)
- func (c *Client) ListReplicationWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ReplicationSpec, error)
- func (c *Client) ListSnapshotsByVolumeId(ctx *c.Context, volumeId string) ([]*model.VolumeSnapshotSpec, error)
- func (c *Client) ListVolumeAttachments(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (c *Client) ListVolumeAttachmentsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeAttachmentSpec, error)
- func (c *Client) ListVolumeGroups(ctx *c.Context) ([]*model.VolumeGroupSpec, error)
- func (c *Client) ListVolumeGroupsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeGroupSpec, error)
- func (c *Client) ListVolumeSnapshots(ctx *c.Context) ([]*model.VolumeSnapshotSpec, error)
- func (c *Client) ListVolumeSnapshotsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSnapshotSpec, error)
- func (c *Client) ListVolumes(ctx *c.Context) ([]*model.VolumeSpec, error)
- func (c *Client) ListVolumesByGroupId(ctx *c.Context, vgId string) ([]*model.VolumeSpec, error)
- func (c *Client) ListVolumesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSpec, error)
- func (c *Client) ParameterFilter(m map[string][]string, size int, sortKeys []string) *Parameter
- func (c *Client) RemoveCustomProperty(ctx *c.Context, prfID, customKey string) error
- func (c *Client) SelectDocks(m map[string][]string, docks []*model.DockSpec) []*model.DockSpec
- func (c *Client) SelectFileShareSnapshots(m map[string][]string, snapshots []*model.FileShareSnapshotSpec) []*model.FileShareSnapshotSpec
- func (c *Client) SelectFileShares(m map[string][]string, fileshares []*model.FileShareSpec) []*model.FileShareSpec
- func (c *Client) SelectOrNot(m map[string][]string) bool
- func (c *Client) SelectPools(m map[string][]string, pools []*model.StoragePoolSpec) []*model.StoragePoolSpec
- func (c *Client) SelectProfiles(m map[string][]string, profiles []*model.ProfileSpec) []*model.ProfileSpec
- func (c *Client) SelectReplication(param map[string][]string, replications []*model.ReplicationSpec) []*model.ReplicationSpec
- func (c *Client) SelectSnapshots(m map[string][]string, snapshots []*model.VolumeSnapshotSpec) []*model.VolumeSnapshotSpec
- func (c *Client) SelectVolumeAttachments(m map[string][]string, attachments []*model.VolumeAttachmentSpec) []*model.VolumeAttachmentSpec
- func (c *Client) SelectVolumeGroup(param map[string][]string, vgs []*model.VolumeGroupSpec) []*model.VolumeGroupSpec
- func (c *Client) SelectVolumes(m map[string][]string, volumes []*model.VolumeSpec) []*model.VolumeSpec
- func (c *Client) SortDocks(dcks []*model.DockSpec, p *Parameter) []*model.DockSpec
- func (c *Client) SortFileShareSnapshots(snapshots []*model.FileShareSnapshotSpec, p *Parameter) []*model.FileShareSnapshotSpec
- func (c *Client) SortFileShares(shares []*model.FileShareSpec, p *Parameter) []*model.FileShareSpec
- func (c *Client) SortPools(pools []*model.StoragePoolSpec, p *Parameter) []*model.StoragePoolSpec
- func (c *Client) SortProfiles(profiles []*model.ProfileSpec, p *Parameter) []*model.ProfileSpec
- func (c *Client) SortReplications(replications []*model.ReplicationSpec, p *Parameter) []*model.ReplicationSpec
- func (c *Client) SortSnapshots(snapshots []*model.VolumeSnapshotSpec, p *Parameter) []*model.VolumeSnapshotSpec
- func (c *Client) SortVolumeAttachments(attachments []*model.VolumeAttachmentSpec, p *Parameter) []*model.VolumeAttachmentSpec
- func (c *Client) SortVolumeGroups(vgs []*model.VolumeGroupSpec, p *Parameter) []*model.VolumeGroupSpec
- func (c *Client) SortVolumes(volumes []*model.VolumeSpec, p *Parameter) []*model.VolumeSpec
- func (c *Client) UpdateDock(ctx *c.Context, dckID, name, desp string) (*model.DockSpec, error)
- func (c *Client) UpdateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)
- func (c *Client) UpdateFileShareAcl(ctx *c.Context, acl *model.FileShareAclSpec) (*model.FileShareAclSpec, error)
- func (c *Client) UpdateFileShareSnapshot(ctx *c.Context, snpID string, snp *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)
- func (c *Client) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (c *Client) UpdateProfile(ctx *c.Context, prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
- func (c *Client) UpdateReplication(ctx *c.Context, replicationId string, input *model.ReplicationSpec) (*model.ReplicationSpec, error)
- func (c *Client) UpdateStatus(ctx *c.Context, in interface{}, status string) error
- func (c *Client) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (c *Client) UpdateVolumeAttachment(ctx *c.Context, attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (c *Client) UpdateVolumeGroup(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (c *Client) UpdateVolumeSnapshot(ctx *c.Context, snpID string, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (c *Client) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)
- type DockSlice
- type FileShareSlice
- type FileShareSnapshotSlice
- type Parameter
- type ProfileSlice
- type ReplicationSlice
- type ReplicationsCompareFunc
- type Request
- type Response
- type StoragePoolSlice
- type VolumeAttachmentSlice
- type VolumeGroupCompareFunc
- type VolumeGroupSlice
- type VolumeSlice
- type VolumeSnapshotSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeProjectContext ¶ added in v0.1.4
func IsAdminContext ¶ added in v0.1.4
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client
func (*Client) AddCustomProperty ¶ added in v0.3.1
func (c *Client) AddCustomProperty(ctx *c.Context, prfID string, ext model.CustomPropertiesSpec) (*model.CustomPropertiesSpec, error)
AddCustomProperty
func (*Client) CreateDock ¶
CreateDock
func (*Client) CreateFileShare ¶ added in v0.5.2
func (c *Client) CreateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)
func (*Client) CreateFileShareAcl ¶ added in v0.5.3
func (c *Client) CreateFileShareAcl(ctx *c.Context, fshare *model.FileShareAclSpec) (*model.FileShareAclSpec, error)
func (*Client) CreateFileShareSnapshot ¶ added in v0.5.2
func (c *Client) CreateFileShareSnapshot(ctx *c.Context, snp *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)
CreateFileShareSnapshot
func (*Client) CreatePool ¶
func (c *Client) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
CreatePool
func (*Client) CreateProfile ¶
func (c *Client) CreateProfile(ctx *c.Context, prf *model.ProfileSpec) (*model.ProfileSpec, error)
CreateProfile
func (*Client) CreateReplication ¶ added in v0.1.8
func (c *Client) CreateReplication(ctx *c.Context, r *model.ReplicationSpec) (*model.ReplicationSpec, error)
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
CreateVolume
func (*Client) CreateVolumeAttachment ¶
func (c *Client) CreateVolumeAttachment(ctx *c.Context, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*Client) CreateVolumeGroup ¶ added in v0.1.8
func (c *Client) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func (*Client) CreateVolumeSnapshot ¶
func (c *Client) CreateVolumeSnapshot(ctx *c.Context, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*Client) DeleteDock ¶
DeleteDock
func (*Client) DeleteFileShare ¶ added in v0.5.2
DeleteFileShare
func (*Client) DeleteFileShareAcl ¶ added in v0.5.3
DeleteFileShareAcl
func (*Client) DeleteFileShareSnapshot ¶ added in v0.5.2
DeleteFileShareSnapshot
func (*Client) DeletePool ¶
DeletePool
func (*Client) DeleteProfile ¶
DeleteProfile
func (*Client) DeleteReplication ¶ added in v0.1.8
func (*Client) DeleteVolume ¶
DeleteVolume
func (*Client) DeleteVolumeAttachment ¶
DeleteVolumeAttachment
func (*Client) DeleteVolumeGroup ¶ added in v0.1.8
func (*Client) DeleteVolumeSnapshot ¶
DeleteVolumeSnapshot
func (*Client) ExtendVolume ¶ added in v0.1.1
func (c *Client) ExtendVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
ExtendVolume ...
func (*Client) FindAttachmentValue ¶ added in v0.1.4
func (c *Client) FindAttachmentValue(k string, p *model.VolumeAttachmentSpec) string
func (*Client) FindDockValue ¶ added in v0.1.4
func (*Client) FindFileShareSnapshotsValue ¶ added in v0.5.2
func (c *Client) FindFileShareSnapshotsValue(k string, p *model.FileShareSnapshotSpec) string
func (*Client) FindFileShareValue ¶ added in v0.5.2
func (c *Client) FindFileShareValue(k string, p *model.FileShareSpec) string
func (*Client) FindPoolValue ¶ added in v0.1.4
func (c *Client) FindPoolValue(k string, p *model.StoragePoolSpec) string
func (*Client) FindProfileValue ¶ added in v0.1.4
func (c *Client) FindProfileValue(k string, p *model.ProfileSpec) string
func (*Client) FindSnapshotsValue ¶ added in v0.1.4
func (c *Client) FindSnapshotsValue(k string, p *model.VolumeSnapshotSpec) string
func (*Client) FindVolumeValue ¶ added in v0.1.4
func (c *Client) FindVolumeValue(k string, p *model.VolumeSpec) string
func (*Client) GetDefaultProfile ¶
GetDefaultProfile
func (*Client) GetDefaultProfileFileShare ¶ added in v0.5.3
GetDefaultProfileFileShare
func (*Client) GetDockByPoolId ¶
GetDockByPoolId
func (*Client) GetFileShare ¶ added in v0.5.2
GetFileShare
func (*Client) GetFileShareAcl ¶ added in v0.5.3
GetFileShareAcl
func (*Client) GetFileShareSnapshot ¶ added in v0.5.2
func (*Client) GetProfile ¶
GetProfile
func (*Client) GetReplication ¶ added in v0.1.8
func (*Client) GetReplicationByVolumeId ¶ added in v0.2.1
func (*Client) GetSortDir ¶ added in v0.1.4
Get parameter sortDir
func (*Client) GetSortKey ¶ added in v0.1.4
Get parameter sortKey
func (*Client) GetVolumeAttachment ¶
func (*Client) GetVolumeGroup ¶ added in v0.1.8
func (*Client) GetVolumeSnapshot ¶
func (*Client) ListAttachmentsByVolumeId ¶ added in v0.5.1
func (*Client) ListAvailabilityZones ¶ added in v0.3.0
ListAvailabilityZones
func (*Client) ListCustomProperties ¶ added in v0.3.1
func (c *Client) ListCustomProperties(ctx *c.Context, prfID string) (*model.CustomPropertiesSpec, error)
ListCustomProperties
func (*Client) ListDocksWithFilter ¶ added in v0.1.4
func (*Client) ListFileShareSnapshots ¶ added in v0.5.2
ListFileShareSnapshots
func (*Client) ListFileShareSnapshotsWithFilter ¶ added in v0.5.2
func (*Client) ListFileShares ¶ added in v0.5.2
ListFileShares
func (*Client) ListFileSharesAcl ¶ added in v0.5.3
func (*Client) ListFileSharesAclWithFilter ¶ added in v0.5.3
func (*Client) ListFileSharesWithFilter ¶ added in v0.5.2
func (*Client) ListPoolsWithFilter ¶ added in v0.1.4
func (*Client) ListProfiles ¶
ListProfiles
func (*Client) ListProfilesWithFilter ¶ added in v0.1.4
func (*Client) ListReplication ¶ added in v0.1.8
func (*Client) ListReplicationWithFilter ¶ added in v0.1.8
func (*Client) ListSnapshotsByVolumeId ¶ added in v0.1.8
func (*Client) ListVolumeAttachments ¶
func (c *Client) ListVolumeAttachments(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*Client) ListVolumeAttachmentsWithFilter ¶ added in v0.1.4
func (*Client) ListVolumeGroups ¶ added in v0.1.8
ListVolumes
func (*Client) ListVolumeGroupsWithFilter ¶ added in v0.1.10
func (*Client) ListVolumeSnapshots ¶
ListVolumeSnapshots
func (*Client) ListVolumeSnapshotsWithFilter ¶ added in v0.1.4
func (*Client) ListVolumes ¶
ListVolumes
func (*Client) ListVolumesByGroupId ¶ added in v0.1.8
func (*Client) ListVolumesWithFilter ¶ added in v0.1.4
func (*Client) ParameterFilter ¶ added in v0.1.4
ParameterFilter
func (*Client) RemoveCustomProperty ¶ added in v0.3.1
RemoveCustomProperty
func (*Client) SelectDocks ¶ added in v0.1.4
func (*Client) SelectFileShareSnapshots ¶ added in v0.5.2
func (c *Client) SelectFileShareSnapshots(m map[string][]string, snapshots []*model.FileShareSnapshotSpec) []*model.FileShareSnapshotSpec
func (*Client) SelectFileShares ¶ added in v0.5.2
func (c *Client) SelectFileShares(m map[string][]string, fileshares []*model.FileShareSpec) []*model.FileShareSpec
func (*Client) SelectOrNot ¶ added in v0.1.4
func (*Client) SelectPools ¶ added in v0.1.4
func (c *Client) SelectPools(m map[string][]string, pools []*model.StoragePoolSpec) []*model.StoragePoolSpec
func (*Client) SelectProfiles ¶ added in v0.1.4
func (c *Client) SelectProfiles(m map[string][]string, profiles []*model.ProfileSpec) []*model.ProfileSpec
func (*Client) SelectReplication ¶ added in v0.1.8
func (c *Client) SelectReplication(param map[string][]string, replications []*model.ReplicationSpec) []*model.ReplicationSpec
func (*Client) SelectSnapshots ¶ added in v0.1.4
func (c *Client) SelectSnapshots(m map[string][]string, snapshots []*model.VolumeSnapshotSpec) []*model.VolumeSnapshotSpec
func (*Client) SelectVolumeAttachments ¶ added in v0.1.4
func (c *Client) SelectVolumeAttachments(m map[string][]string, attachments []*model.VolumeAttachmentSpec) []*model.VolumeAttachmentSpec
func (*Client) SelectVolumeGroup ¶ added in v0.1.10
func (c *Client) SelectVolumeGroup(param map[string][]string, vgs []*model.VolumeGroupSpec) []*model.VolumeGroupSpec
func (*Client) SelectVolumes ¶ added in v0.1.4
func (c *Client) SelectVolumes(m map[string][]string, volumes []*model.VolumeSpec) []*model.VolumeSpec
func (*Client) SortFileShareSnapshots ¶ added in v0.5.2
func (c *Client) SortFileShareSnapshots(snapshots []*model.FileShareSnapshotSpec, p *Parameter) []*model.FileShareSnapshotSpec
func (*Client) SortFileShares ¶ added in v0.5.2
func (c *Client) SortFileShares(shares []*model.FileShareSpec, p *Parameter) []*model.FileShareSpec
func (*Client) SortPools ¶ added in v0.1.4
func (c *Client) SortPools(pools []*model.StoragePoolSpec, p *Parameter) []*model.StoragePoolSpec
func (*Client) SortProfiles ¶ added in v0.1.4
func (c *Client) SortProfiles(profiles []*model.ProfileSpec, p *Parameter) []*model.ProfileSpec
func (*Client) SortReplications ¶ added in v0.1.8
func (c *Client) SortReplications(replications []*model.ReplicationSpec, p *Parameter) []*model.ReplicationSpec
func (*Client) SortSnapshots ¶ added in v0.1.4
func (c *Client) SortSnapshots(snapshots []*model.VolumeSnapshotSpec, p *Parameter) []*model.VolumeSnapshotSpec
func (*Client) SortVolumeAttachments ¶ added in v0.1.4
func (c *Client) SortVolumeAttachments(attachments []*model.VolumeAttachmentSpec, p *Parameter) []*model.VolumeAttachmentSpec
func (*Client) SortVolumeGroups ¶ added in v0.1.10
func (c *Client) SortVolumeGroups(vgs []*model.VolumeGroupSpec, p *Parameter) []*model.VolumeGroupSpec
func (*Client) SortVolumes ¶ added in v0.1.4
func (c *Client) SortVolumes(volumes []*model.VolumeSpec, p *Parameter) []*model.VolumeSpec
func (*Client) UpdateDock ¶
UpdateDock
func (*Client) UpdateFileShare ¶ added in v0.5.2
func (c *Client) UpdateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)
UpdateFileShare ...
func (*Client) UpdateFileShareAcl ¶ added in v0.5.4
func (c *Client) UpdateFileShareAcl(ctx *c.Context, acl *model.FileShareAclSpec) (*model.FileShareAclSpec, error)
UpdateFileShareAcl
func (*Client) UpdateFileShareSnapshot ¶ added in v0.5.2
func (c *Client) UpdateFileShareSnapshot(ctx *c.Context, snpID string, snp *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)
UpdateFileShareSnapshot
func (*Client) UpdatePool ¶
func (c *Client) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*Client) UpdateProfile ¶
func (c *Client) UpdateProfile(ctx *c.Context, prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
UpdateProfile
func (*Client) UpdateReplication ¶ added in v0.1.8
func (c *Client) UpdateReplication(ctx *c.Context, replicationId string, input *model.ReplicationSpec) (*model.ReplicationSpec, error)
func (*Client) UpdateStatus ¶ added in v0.1.8
func (*Client) UpdateVolume ¶
func (c *Client) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume ...
func (*Client) UpdateVolumeAttachment ¶
func (c *Client) UpdateVolumeAttachment(ctx *c.Context, attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment
func (*Client) UpdateVolumeGroup ¶ added in v0.1.8
func (c *Client) UpdateVolumeGroup(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func (*Client) UpdateVolumeSnapshot ¶
func (c *Client) UpdateVolumeSnapshot(ctx *c.Context, snpID string, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot
func (*Client) VolumesToUpdate ¶ added in v0.1.8
func (c *Client) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)
type FileShareSlice ¶ added in v0.5.2
type FileShareSlice []*model.FileShareSpec
func (FileShareSlice) Len ¶ added in v0.5.2
func (fileshare FileShareSlice) Len() int
func (FileShareSlice) Less ¶ added in v0.5.2
func (fileshare FileShareSlice) Less(i, j int) bool
func (FileShareSlice) Swap ¶ added in v0.5.2
func (fileshare FileShareSlice) Swap(i, j int)
type FileShareSnapshotSlice ¶ added in v0.5.2
type FileShareSnapshotSlice []*model.FileShareSnapshotSpec
func (FileShareSnapshotSlice) Len ¶ added in v0.5.2
func (fileshareSnapshot FileShareSnapshotSlice) Len() int
func (FileShareSnapshotSlice) Less ¶ added in v0.5.2
func (fileshareSnapshot FileShareSnapshotSlice) Less(i, j int) bool
func (FileShareSnapshotSlice) Swap ¶ added in v0.5.2
func (fileshareSnapshot FileShareSnapshotSlice) Swap(i, j int)
type Parameter ¶ added in v0.1.4
type Parameter struct {
// contains filtered or unexported fields
}
Parameter
type ProfileSlice ¶ added in v0.1.4
type ProfileSlice []*model.ProfileSpec
func (ProfileSlice) Len ¶ added in v0.1.4
func (profile ProfileSlice) Len() int
func (ProfileSlice) Less ¶ added in v0.1.4
func (profile ProfileSlice) Less(i, j int) bool
func (ProfileSlice) Swap ¶ added in v0.1.4
func (profile ProfileSlice) Swap(i, j int)
type ReplicationSlice ¶ added in v0.1.8
type ReplicationSlice []*model.ReplicationSpec
func (ReplicationSlice) Len ¶ added in v0.1.8
func (r ReplicationSlice) Len() int
func (ReplicationSlice) Less ¶ added in v0.1.8
func (r ReplicationSlice) Less(i, j int) bool
func (ReplicationSlice) Swap ¶ added in v0.1.8
func (r ReplicationSlice) Swap(i, j int)
type ReplicationsCompareFunc ¶ added in v0.1.8
type ReplicationsCompareFunc func(a *model.ReplicationSpec, b *model.ReplicationSpec) bool
type Request ¶
type Request struct { Url string `json:"url"` Content string `json:"content"` NewContent string `json:"newContent"` }
Request
type Response ¶
type Response struct { Status string `json:"status"` Message []string `json:"message"` Error string `json:"error"` }
Response
type StoragePoolSlice ¶ added in v0.1.4
type StoragePoolSlice []*model.StoragePoolSpec
func (StoragePoolSlice) Len ¶ added in v0.1.4
func (pool StoragePoolSlice) Len() int
func (StoragePoolSlice) Less ¶ added in v0.1.4
func (pool StoragePoolSlice) Less(i, j int) bool
func (StoragePoolSlice) Swap ¶ added in v0.1.4
func (pool StoragePoolSlice) Swap(i, j int)
type VolumeAttachmentSlice ¶ added in v0.1.4
type VolumeAttachmentSlice []*model.VolumeAttachmentSpec
func (VolumeAttachmentSlice) Len ¶ added in v0.1.4
func (volumeAttachment VolumeAttachmentSlice) Len() int
func (VolumeAttachmentSlice) Less ¶ added in v0.1.4
func (volumeAttachment VolumeAttachmentSlice) Less(i, j int) bool
func (VolumeAttachmentSlice) Swap ¶ added in v0.1.4
func (volumeAttachment VolumeAttachmentSlice) Swap(i, j int)
type VolumeGroupCompareFunc ¶ added in v0.1.10
type VolumeGroupCompareFunc func(a *model.VolumeGroupSpec, b *model.VolumeGroupSpec) bool
type VolumeGroupSlice ¶ added in v0.1.10
type VolumeGroupSlice []*model.VolumeGroupSpec
func (VolumeGroupSlice) Len ¶ added in v0.1.10
func (v VolumeGroupSlice) Len() int
func (VolumeGroupSlice) Less ¶ added in v0.1.10
func (v VolumeGroupSlice) Less(i, j int) bool
func (VolumeGroupSlice) Swap ¶ added in v0.1.10
func (v VolumeGroupSlice) Swap(i, j int)
type VolumeSlice ¶ added in v0.1.4
type VolumeSlice []*model.VolumeSpec
func (VolumeSlice) Len ¶ added in v0.1.4
func (volume VolumeSlice) Len() int
func (VolumeSlice) Less ¶ added in v0.1.4
func (volume VolumeSlice) Less(i, j int) bool
func (VolumeSlice) Swap ¶ added in v0.1.4
func (volume VolumeSlice) Swap(i, j int)
type VolumeSnapshotSlice ¶ added in v0.1.4
type VolumeSnapshotSlice []*model.VolumeSnapshotSpec
func (VolumeSnapshotSlice) Len ¶ added in v0.1.4
func (volumeSnapshot VolumeSnapshotSlice) Len() int
func (VolumeSnapshotSlice) Less ¶ added in v0.1.4
func (volumeSnapshot VolumeSnapshotSlice) Less(i, j int) bool
func (VolumeSnapshotSlice) Swap ¶ added in v0.1.4
func (volumeSnapshot VolumeSnapshotSlice) Swap(i, j int)