Documentation ¶
Index ¶
- Constants
- Variables
- func NewHttpError(code int, msg string) error
- type AuthOptions
- type Client
- type Config
- type CustomBuilder
- type DockMgr
- type ExtendVolumeBuilder
- type FailoverReplicationBuilder
- type FileShareAclBuilder
- type FileShareBuilder
- type FileShareMgr
- func (v *FileShareMgr) CreateFileShare(body FileShareBuilder) (*model.FileShareSpec, error)
- func (v *FileShareMgr) CreateFileShareAcl(body FileShareAclBuilder) (*model.FileShareAclSpec, error)
- func (v *FileShareMgr) CreateFileShareSnapshot(body FileShareSnapshotBuilder) (*model.FileShareSnapshotSpec, error)
- func (v *FileShareMgr) DeleteFileShare(ID string) error
- func (v *FileShareMgr) DeleteFileShareAcl(ID string) error
- func (v *FileShareMgr) DeleteFileShareSnapshot(ID string) error
- func (v *FileShareMgr) GetFileShare(ID string) (*model.FileShareSpec, error)
- func (v *FileShareMgr) GetFileShareAcl(ID string) (*model.FileShareAclSpec, error)
- func (v *FileShareMgr) GetFileShareSnapshot(ID string) (*model.FileShareSnapshotSpec, error)
- func (v *FileShareMgr) ListFileShareSnapshots(args ...interface{}) ([]*model.FileShareSnapshotSpec, error)
- func (v *FileShareMgr) ListFileShares(args ...interface{}) ([]*model.FileShareSpec, error)
- func (v *FileShareMgr) ListFileSharesAcl(args ...interface{}) ([]*model.FileShareAclSpec, error)
- func (v *FileShareMgr) UpdateFileShare(ID string, body FileShareBuilder) (*model.FileShareSpec, error)
- func (v *FileShareMgr) UpdateFileShareSnapshot(ID string, body FileShareSnapshotBuilder) (*model.FileShareSnapshotSpec, error)
- type FileShareSnapshotBuilder
- type HeaderOption
- type HostBuilder
- type HostMgr
- func (h *HostMgr) CreateHost(body HostBuilder) (*model.HostSpec, error)
- func (h *HostMgr) DeleteHost(ID string) error
- func (h *HostMgr) GetHost(ID string) (*model.HostSpec, error)
- func (h *HostMgr) ListHosts(args ...interface{}) ([]*model.HostSpec, error)
- func (h *HostMgr) UpdateHost(ID string, body HostBuilder) (*model.HostSpec, error)
- type HttpError
- type KeystoneAuthOptions
- type KeystoneReceiver
- type NoAuthOptions
- type PoolMgr
- type ProfileBuilder
- type ProfileMgr
- func (p *ProfileMgr) AddCustomProperty(prfID string, body CustomBuilder) (*model.CustomPropertiesSpec, error)
- func (p *ProfileMgr) CreateProfile(body ProfileBuilder) (*model.ProfileSpec, error)
- func (p *ProfileMgr) DeleteProfile(prfID string) error
- func (p *ProfileMgr) GetProfile(prfID string) (*model.ProfileSpec, error)
- func (p *ProfileMgr) ListCustomProperties(prfID string) (*model.CustomPropertiesSpec, error)
- func (p *ProfileMgr) ListProfiles(args ...interface{}) ([]*model.ProfileSpec, error)
- func (p *ProfileMgr) RemoveCustomProperty(prfID, customKey string) error
- func (p *ProfileMgr) UpdateProfile(prfID string, body ProfileBuilder) (*model.ProfileSpec, error)
- type Receiver
- func NewFakeDockReceiver() Receiver
- func NewFakeFileShareReceiver() Receiver
- func NewFakeHostReceiver() Receiver
- func NewFakePoolReceiver() Receiver
- func NewFakeProfileReceiver() Receiver
- func NewFakeReplicationReceiver() Receiver
- func NewFakeVersionReceiver() Receiver
- func NewFakeVolumeReceiver() Receiver
- func NewKeystoneReceiver(auth *KeystoneAuthOptions) (Receiver, error)
- func NewReceiver() Receiver
- type ReplicationBuilder
- type ReplicationMgr
- func (v *ReplicationMgr) CreateReplication(body ReplicationBuilder) (*model.ReplicationSpec, error)
- func (v *ReplicationMgr) DeleteReplication(replicaId string, body ReplicationBuilder) error
- func (v *ReplicationMgr) DisableReplication(replicaId string) error
- func (v *ReplicationMgr) EnableReplication(replicaId string) error
- func (v *ReplicationMgr) FailoverReplication(replicaId string, body FailoverReplicationBuilder) error
- func (v *ReplicationMgr) GetReplication(replicaId string) (*model.ReplicationSpec, error)
- func (v *ReplicationMgr) ListReplications(args ...interface{}) ([]*model.ReplicationSpec, error)
- func (v *ReplicationMgr) UpdateReplication(replicaId string, body ReplicationBuilder) (*model.ReplicationSpec, error)
- type VersionBuilder
- type VersionMgr
- type VolumeAttachmentBuilder
- type VolumeBuilder
- type VolumeGroupBuilder
- type VolumeMgr
- func (v *VolumeMgr) CreateVolume(body VolumeBuilder) (*model.VolumeSpec, error)
- func (v *VolumeMgr) CreateVolumeAttachment(body VolumeAttachmentBuilder) (*model.VolumeAttachmentSpec, error)
- func (v *VolumeMgr) CreateVolumeGroup(body VolumeGroupBuilder) (*model.VolumeGroupSpec, error)
- func (v *VolumeMgr) CreateVolumeSnapshot(body VolumeSnapshotBuilder) (*model.VolumeSnapshotSpec, error)
- func (v *VolumeMgr) DeleteVolume(volID string, body VolumeBuilder) error
- func (v *VolumeMgr) DeleteVolumeAttachment(atcID string, body VolumeAttachmentBuilder) error
- func (v *VolumeMgr) DeleteVolumeGroup(vgId string, body VolumeGroupBuilder) error
- func (v *VolumeMgr) DeleteVolumeSnapshot(snpID string, body VolumeSnapshotBuilder) error
- func (v *VolumeMgr) ExtendVolume(volID string, body ExtendVolumeBuilder) (*model.VolumeSpec, error)
- func (v *VolumeMgr) GetVolume(volID string) (*model.VolumeSpec, error)
- func (v *VolumeMgr) GetVolumeAttachment(atcID string) (*model.VolumeAttachmentSpec, error)
- func (v *VolumeMgr) GetVolumeGroup(vgId string) (*model.VolumeGroupSpec, error)
- func (v *VolumeMgr) GetVolumeSnapshot(snpID string) (*model.VolumeSnapshotSpec, error)
- func (v *VolumeMgr) ListVolumeAttachments(args ...interface{}) ([]*model.VolumeAttachmentSpec, error)
- func (v *VolumeMgr) ListVolumeGroups(args ...interface{}) ([]*model.VolumeGroupSpec, error)
- func (v *VolumeMgr) ListVolumeSnapshots(args ...interface{}) ([]*model.VolumeSnapshotSpec, error)
- func (v *VolumeMgr) ListVolumes(args ...interface{}) ([]*model.VolumeSpec, error)
- func (v *VolumeMgr) UpdateVolume(volID string, body VolumeBuilder) (*model.VolumeSpec, error)
- func (v *VolumeMgr) UpdateVolumeAttachment(atcID string, body VolumeAttachmentBuilder) (*model.VolumeAttachmentSpec, error)
- func (v *VolumeMgr) UpdateVolumeGroup(vgId string, body VolumeGroupBuilder) (*model.VolumeGroupSpec, error)
- func (v *VolumeMgr) UpdateVolumeSnapshot(snpID string, body VolumeSnapshotBuilder) (*model.VolumeSnapshotSpec, error)
- type VolumeSnapshotBuilder
Constants ¶
const ( //Opensds Auth ENVs OpensdsAuthStrategy = "OPENSDS_AUTH_STRATEGY" OpensdsTenantId = "OPENSDS_TENANT_ID" // Keystone Auth ENVs OsAuthUrl = "OS_AUTH_URL" OsUsername = "OS_USERNAME" OsPassword = "OS_PASSWORD" OsTenantName = "OS_TENANT_NAME" OsProjectName = "OS_PROJECT_NAME" OsUserDomainId = "OS_USER_DOMAIN_ID" PwdEncrypter = "PASSWORD_ENCRYPTER" EnableEncrypted = "ENABLE_ENCRYPTED" Keystone = "keystone" Noauth = "noauth" )
const (
OpensdsEndpoint = "OPENSDS_ENDPOINT"
)
Variables ¶
var (
TestEp = "TestEndPoint"
)
Functions ¶
func NewHttpError ¶ added in v0.1.4
Types ¶
type AuthOptions ¶ added in v0.1.4
type AuthOptions interface {
GetTenantId() string
}
type Client ¶
type Client struct { *ProfileMgr *DockMgr *PoolMgr *VolumeMgr *VersionMgr *ReplicationMgr *HostMgr // contains filtered or unexported fields }
Client is a struct for exposing some operations of opensds resources.
func NewFakeClient ¶ added in v0.3.1
type Config ¶
type Config struct { Endpoint string AuthOptions AuthOptions }
Config is a struct that defines some options for calling the Client.
type CustomBuilder ¶ added in v0.3.1
type CustomBuilder *model.CustomPropertiesSpec
CustomBuilder contains request body of handling a profile customized properties request. Currently it's assigned as the pointer of CustomPropertiesSpec struct, but it could be discussed if it's better to define an interface.
type ExtendVolumeBuilder ¶ added in v0.1.1
type ExtendVolumeBuilder *model.ExtendVolumeSpec
ExtendVolumeBuilder contains request body of handling a extend volume request. Currently it's assigned as the pointer of ExtendVolumeSpec struct, but it could be discussed if it's better to define an interface.
type FailoverReplicationBuilder ¶ added in v0.1.8
type FailoverReplicationBuilder *model.FailoverReplicationSpec
type FileShareAclBuilder ¶ added in v0.5.3
type FileShareAclBuilder *model.FileShareAclSpec
FileShareAclBuilder contains request body of handling a fileshare acl request. Currently it's assigned as the pointer of FileShareAclSpec struct, but it could be discussed if it's better to define an interface.
type FileShareBuilder ¶ added in v0.5.3
type FileShareBuilder *model.FileShareSpec
FileShareBuilder contains request body of handling a fileshare request. Currently it's assigned as the pointer of FileShareSpec struct, but it could be discussed if it's better to define an interface.
type FileShareMgr ¶ added in v0.5.3
type FileShareMgr struct {}
FileShareMgr implementation
func NewFileShareMgr ¶ added in v0.5.3
func NewFileShareMgr(r Receiver, edp string, tenantID string) *FileShareMgr
NewFileShareMgr implementation
func (*FileShareMgr) CreateFileShare ¶ added in v0.5.3
func (v *FileShareMgr) CreateFileShare(body FileShareBuilder) (*model.FileShareSpec, error)
CreateFileShare implementation
func (*FileShareMgr) CreateFileShareAcl ¶ added in v0.5.3
func (v *FileShareMgr) CreateFileShareAcl(body FileShareAclBuilder) (*model.FileShareAclSpec, error)
CreateFileShareAcl implementation
func (*FileShareMgr) CreateFileShareSnapshot ¶ added in v0.5.3
func (v *FileShareMgr) CreateFileShareSnapshot(body FileShareSnapshotBuilder) (*model.FileShareSnapshotSpec, error)
CreateFileShareSnapshot implementation
func (*FileShareMgr) DeleteFileShare ¶ added in v0.5.3
func (v *FileShareMgr) DeleteFileShare(ID string) error
DeleteFileShare implementation
func (*FileShareMgr) DeleteFileShareAcl ¶ added in v0.5.3
func (v *FileShareMgr) DeleteFileShareAcl(ID string) error
DeleteFileShareAcl implementation
func (*FileShareMgr) DeleteFileShareSnapshot ¶ added in v0.5.3
func (v *FileShareMgr) DeleteFileShareSnapshot(ID string) error
DeleteFileShareSnapshot implementation
func (*FileShareMgr) GetFileShare ¶ added in v0.5.3
func (v *FileShareMgr) GetFileShare(ID string) (*model.FileShareSpec, error)
GetFileShare implementation
func (*FileShareMgr) GetFileShareAcl ¶ added in v0.5.3
func (v *FileShareMgr) GetFileShareAcl(ID string) (*model.FileShareAclSpec, error)
GetFileShareAcl implementation
func (*FileShareMgr) GetFileShareSnapshot ¶ added in v0.5.3
func (v *FileShareMgr) GetFileShareSnapshot(ID string) (*model.FileShareSnapshotSpec, error)
GetFileShareSnapshot implementation
func (*FileShareMgr) ListFileShareSnapshots ¶ added in v0.5.3
func (v *FileShareMgr) ListFileShareSnapshots(args ...interface{}) ([]*model.FileShareSnapshotSpec, error)
ListFileShareSnapshots implementation
func (*FileShareMgr) ListFileShares ¶ added in v0.5.3
func (v *FileShareMgr) ListFileShares(args ...interface{}) ([]*model.FileShareSpec, error)
ListFileShares implementation
func (*FileShareMgr) ListFileSharesAcl ¶ added in v0.5.3
func (v *FileShareMgr) ListFileSharesAcl(args ...interface{}) ([]*model.FileShareAclSpec, error)
ListFileSharesAcl implementation
func (*FileShareMgr) UpdateFileShare ¶ added in v0.5.3
func (v *FileShareMgr) UpdateFileShare(ID string, body FileShareBuilder) (*model.FileShareSpec, error)
UpdateFileShare implementation
func (*FileShareMgr) UpdateFileShareSnapshot ¶ added in v0.5.3
func (v *FileShareMgr) UpdateFileShareSnapshot(ID string, body FileShareSnapshotBuilder) (*model.FileShareSnapshotSpec, error)
UpdateFileShareSnapshot implementation
type FileShareSnapshotBuilder ¶ added in v0.5.3
type FileShareSnapshotBuilder *model.FileShareSnapshotSpec
FileShareSnapshotBuilder contains request body of handling a fileshare snapshot request. Currently it's assigned as the pointer of FileShareSnapshotSpec struct, but it could be discussed if it's better to define an interface.
type HostBuilder ¶ added in v0.12.0
HostBuilder contains request body of handling a host request.
type HostMgr ¶ added in v0.12.0
HostMgr implementation
func NewHostMgr ¶ added in v0.12.0
NewHostMgr implementation
func (*HostMgr) CreateHost ¶ added in v0.12.0
func (h *HostMgr) CreateHost(body HostBuilder) (*model.HostSpec, error)
CreateHost implementation
func (*HostMgr) DeleteHost ¶ added in v0.12.0
DeleteHost implementation
func (*HostMgr) UpdateHost ¶ added in v0.12.0
UpdateHost implementation
type KeystoneAuthOptions ¶ added in v0.1.4
type KeystoneAuthOptions struct { IdentityEndpoint string Username string UserID string Password string PwdEncrypter string EnableEncrypted bool DomainID string DomainName string TenantID string TenantName string AllowReauth bool TokenID string }
func LoadKeystoneAuthOptionsFromEnv ¶ added in v0.1.10
func LoadKeystoneAuthOptionsFromEnv() (*KeystoneAuthOptions, error)
func NewKeystoneAuthOptions ¶ added in v0.1.4
func NewKeystoneAuthOptions() *KeystoneAuthOptions
func (*KeystoneAuthOptions) GetTenantId ¶ added in v0.1.4
func (k *KeystoneAuthOptions) GetTenantId() string
type KeystoneReceiver ¶ added in v0.5.2
type KeystoneReceiver struct {
Auth *KeystoneAuthOptions
}
func (*KeystoneReceiver) GetToken ¶ added in v0.5.2
func (k *KeystoneReceiver) GetToken() error
type NoAuthOptions ¶ added in v0.1.4
type NoAuthOptions struct {
TenantID string
}
func LoadNoAuthOptionsFromEnv ¶ added in v0.1.10
func LoadNoAuthOptionsFromEnv() *NoAuthOptions
func NewNoauthOptions ¶ added in v0.1.4
func NewNoauthOptions(tenantId string) *NoAuthOptions
func (*NoAuthOptions) GetTenantId ¶ added in v0.1.4
func (n *NoAuthOptions) GetTenantId() string
type PoolMgr ¶
PoolMgr
type ProfileBuilder ¶
type ProfileBuilder *model.ProfileSpec
ProfileBuilder contains request body of handling a profile request. Currently it's assigned as the pointer of ProfileSpec struct, but it could be discussed if it's better to define an interface.
type ProfileMgr ¶
ProfileMgr
func NewProfileMgr ¶
func NewProfileMgr(r Receiver, edp string, tenantId string) *ProfileMgr
NewProfileMgr
func (*ProfileMgr) AddCustomProperty ¶ added in v0.3.1
func (p *ProfileMgr) AddCustomProperty(prfID string, body CustomBuilder) (*model.CustomPropertiesSpec, error)
AddCustomProperty
func (*ProfileMgr) CreateProfile ¶
func (p *ProfileMgr) CreateProfile(body ProfileBuilder) (*model.ProfileSpec, error)
CreateProfile
func (*ProfileMgr) DeleteProfile ¶
func (p *ProfileMgr) DeleteProfile(prfID string) error
DeleteProfile
func (*ProfileMgr) GetProfile ¶
func (p *ProfileMgr) GetProfile(prfID string) (*model.ProfileSpec, error)
GetProfile
func (*ProfileMgr) ListCustomProperties ¶ added in v0.3.1
func (p *ProfileMgr) ListCustomProperties(prfID string) (*model.CustomPropertiesSpec, error)
ListCustomProperties
func (*ProfileMgr) ListProfiles ¶
func (p *ProfileMgr) ListProfiles(args ...interface{}) ([]*model.ProfileSpec, error)
ListProfiles
func (*ProfileMgr) RemoveCustomProperty ¶ added in v0.3.1
func (p *ProfileMgr) RemoveCustomProperty(prfID, customKey string) error
RemoveCustomProperty
func (*ProfileMgr) UpdateProfile ¶ added in v0.1.9
func (p *ProfileMgr) UpdateProfile(prfID string, body ProfileBuilder) (*model.ProfileSpec, error)
UpdateProfile ...
type Receiver ¶
type Receiver interface {
Recv(url string, method string, input interface{}, output interface{}) error
}
Receiver
func NewFakeDockReceiver ¶ added in v0.3.1
func NewFakeDockReceiver() Receiver
func NewFakeFileShareReceiver ¶ added in v0.5.3
func NewFakeFileShareReceiver() Receiver
func NewFakeHostReceiver ¶ added in v0.12.0
func NewFakeHostReceiver() Receiver
func NewFakePoolReceiver ¶ added in v0.3.1
func NewFakePoolReceiver() Receiver
func NewFakeProfileReceiver ¶ added in v0.3.1
func NewFakeProfileReceiver() Receiver
func NewFakeReplicationReceiver ¶ added in v0.3.1
func NewFakeReplicationReceiver() Receiver
func NewFakeVersionReceiver ¶ added in v0.3.1
func NewFakeVersionReceiver() Receiver
func NewFakeVolumeReceiver ¶ added in v0.3.1
func NewFakeVolumeReceiver() Receiver
func NewKeystoneReceiver ¶ added in v0.5.2
func NewKeystoneReceiver(auth *KeystoneAuthOptions) (Receiver, error)
type ReplicationBuilder ¶ added in v0.1.8
type ReplicationBuilder *model.ReplicationSpec
type ReplicationMgr ¶ added in v0.1.8
ReplicationMgr
func NewReplicationMgr ¶ added in v0.1.8
func NewReplicationMgr(r Receiver, edp string, tenantId string) *ReplicationMgr
NewReplicationMgr
func (*ReplicationMgr) CreateReplication ¶ added in v0.1.8
func (v *ReplicationMgr) CreateReplication(body ReplicationBuilder) (*model.ReplicationSpec, error)
CreateReplication
func (*ReplicationMgr) DeleteReplication ¶ added in v0.1.8
func (v *ReplicationMgr) DeleteReplication(replicaId string, body ReplicationBuilder) error
DeleteReplication
func (*ReplicationMgr) DisableReplication ¶ added in v0.1.8
func (v *ReplicationMgr) DisableReplication(replicaId string) error
EnableReplication
func (*ReplicationMgr) EnableReplication ¶ added in v0.1.8
func (v *ReplicationMgr) EnableReplication(replicaId string) error
EnableReplication
func (*ReplicationMgr) FailoverReplication ¶ added in v0.1.8
func (v *ReplicationMgr) FailoverReplication(replicaId string, body FailoverReplicationBuilder) error
EnableReplication
func (*ReplicationMgr) GetReplication ¶ added in v0.1.8
func (v *ReplicationMgr) GetReplication(replicaId string) (*model.ReplicationSpec, error)
GetReplication
func (*ReplicationMgr) ListReplications ¶ added in v0.1.8
func (v *ReplicationMgr) ListReplications(args ...interface{}) ([]*model.ReplicationSpec, error)
ListReplications
func (*ReplicationMgr) UpdateReplication ¶ added in v0.1.8
func (v *ReplicationMgr) UpdateReplication(replicaId string, body ReplicationBuilder) (*model.ReplicationSpec, error)
UpdateReplication
type VersionBuilder ¶ added in v0.1.1
type VersionBuilder *model.VersionSpec
VersionBuilder contains request body of handling a version request. Currently it's assigned as the pointer of VersionSpec struct, but it could be discussed if it's better to define an interface.
type VersionMgr ¶ added in v0.1.1
VersionMgr ...
func NewVersionMgr ¶ added in v0.1.1
func NewVersionMgr(r Receiver, edp string, tenantId string) *VersionMgr
NewVersionMgr ...
func (*VersionMgr) GetVersion ¶ added in v0.1.1
func (v *VersionMgr) GetVersion(apiVersion string) (*model.VersionSpec, error)
GetVersion ...
func (*VersionMgr) ListVersions ¶ added in v0.1.1
func (v *VersionMgr) ListVersions() ([]*model.VersionSpec, error)
ListVersions ...
type VolumeAttachmentBuilder ¶
type VolumeAttachmentBuilder *model.VolumeAttachmentSpec
VolumeAttachmentBuilder contains request body of handling a volume request. Currently it's assigned as the pointer of VolumeSpec struct, but it could be discussed if it's better to define an interface.
type VolumeBuilder ¶
type VolumeBuilder *model.VolumeSpec
VolumeBuilder contains request body of handling a volume request. Currently it's assigned as the pointer of VolumeSpec struct, but it could be discussed if it's better to define an interface.
type VolumeGroupBuilder ¶ added in v0.1.8
type VolumeGroupBuilder *model.VolumeGroupSpec
VolumeGroupBuilder contains request body of handling a volume group request. Currently it's assigned as the pointer of VolumeGroupSpec struct, but it could be discussed if it's better to define an interface.
type VolumeMgr ¶
VolumeMgr
func NewVolumeMgr ¶
NewVolumeMgr
func (*VolumeMgr) CreateVolume ¶
func (v *VolumeMgr) CreateVolume(body VolumeBuilder) (*model.VolumeSpec, error)
CreateVolume
func (*VolumeMgr) CreateVolumeAttachment ¶
func (v *VolumeMgr) CreateVolumeAttachment(body VolumeAttachmentBuilder) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*VolumeMgr) CreateVolumeGroup ¶ added in v0.1.8
func (v *VolumeMgr) CreateVolumeGroup(body VolumeGroupBuilder) (*model.VolumeGroupSpec, error)
CreateVolumeGroup
func (*VolumeMgr) CreateVolumeSnapshot ¶
func (v *VolumeMgr) CreateVolumeSnapshot(body VolumeSnapshotBuilder) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*VolumeMgr) DeleteVolume ¶
func (v *VolumeMgr) DeleteVolume(volID string, body VolumeBuilder) error
DeleteVolume
func (*VolumeMgr) DeleteVolumeAttachment ¶
func (v *VolumeMgr) DeleteVolumeAttachment(atcID string, body VolumeAttachmentBuilder) error
DeleteVolumeAttachment
func (*VolumeMgr) DeleteVolumeGroup ¶ added in v0.1.8
func (v *VolumeMgr) DeleteVolumeGroup(vgId string, body VolumeGroupBuilder) error
DeleteVolumeGroup
func (*VolumeMgr) DeleteVolumeSnapshot ¶
func (v *VolumeMgr) DeleteVolumeSnapshot(snpID string, body VolumeSnapshotBuilder) error
DeleteVolumeSnapshot
func (*VolumeMgr) ExtendVolume ¶ added in v0.1.1
func (v *VolumeMgr) ExtendVolume(volID string, body ExtendVolumeBuilder) (*model.VolumeSpec, error)
ExtendVolume ...
func (*VolumeMgr) GetVolume ¶
func (v *VolumeMgr) GetVolume(volID string) (*model.VolumeSpec, error)
GetVolume
func (*VolumeMgr) GetVolumeAttachment ¶
func (v *VolumeMgr) GetVolumeAttachment(atcID string) (*model.VolumeAttachmentSpec, error)
GetVolumeAttachment
func (*VolumeMgr) GetVolumeGroup ¶ added in v0.1.8
func (v *VolumeMgr) GetVolumeGroup(vgId string) (*model.VolumeGroupSpec, error)
GetVolumeGroup
func (*VolumeMgr) GetVolumeSnapshot ¶
func (v *VolumeMgr) GetVolumeSnapshot(snpID string) (*model.VolumeSnapshotSpec, error)
GetVolumeSnapshot
func (*VolumeMgr) ListVolumeAttachments ¶
func (v *VolumeMgr) ListVolumeAttachments(args ...interface{}) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*VolumeMgr) ListVolumeGroups ¶ added in v0.1.8
func (v *VolumeMgr) ListVolumeGroups(args ...interface{}) ([]*model.VolumeGroupSpec, error)
ListVolumeGroups
func (*VolumeMgr) ListVolumeSnapshots ¶
func (v *VolumeMgr) ListVolumeSnapshots(args ...interface{}) ([]*model.VolumeSnapshotSpec, error)
ListVolumeSnapshots
func (*VolumeMgr) ListVolumes ¶
func (v *VolumeMgr) ListVolumes(args ...interface{}) ([]*model.VolumeSpec, error)
ListVolumes
func (*VolumeMgr) UpdateVolume ¶
func (v *VolumeMgr) UpdateVolume(volID string, body VolumeBuilder) (*model.VolumeSpec, error)
UpdateVolume
func (*VolumeMgr) UpdateVolumeAttachment ¶
func (v *VolumeMgr) UpdateVolumeAttachment(atcID string, body VolumeAttachmentBuilder) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment
func (*VolumeMgr) UpdateVolumeGroup ¶ added in v0.1.8
func (v *VolumeMgr) UpdateVolumeGroup(vgId string, body VolumeGroupBuilder) (*model.VolumeGroupSpec, error)
UpdateVolumeSnapshot
func (*VolumeMgr) UpdateVolumeSnapshot ¶
func (v *VolumeMgr) UpdateVolumeSnapshot(snpID string, body VolumeSnapshotBuilder) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot
type VolumeSnapshotBuilder ¶
type VolumeSnapshotBuilder *model.VolumeSnapshotSpec
VolumeSnapshotBuilder contains request body of handling a volume snapshot request. Currently it's assigned as the pointer of VolumeSnapshotSpec struct, but it could be discussed if it's better to define an interface.