Documentation ¶
Index ¶
- type SBaseStorageDriver
- func (self *SBaseStorageDriver) DoStorageUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseStorageDriver) OnDiskReset(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SBaseStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SBaseStorageDriver) RequestCreateSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error
- func (self *SBaseStorageDriver) RequestDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error
- func (self *SBaseStorageDriver) SnapshotIsOutOfChain(disk *models.SDisk) bool
- func (self *SBaseStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SBaseStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error
- func (self *SBaseStorageDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.StorageUpdateInput, error)
- type SCLVMStorageDriver
- func (s *SCLVMStorageDriver) GetStorageType() string
- func (s *SCLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (s *SCLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (s *SCLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SCLVMStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error
- type SGpfsStorageDriver
- type SLVMStorageDriver
- func (self *SLVMStorageDriver) GetStorageType() string
- func (self *SLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SLVMStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error
- type SLocalStorageDriver
- type SNVMEPassthroughStorageDriver
- func (self *SNVMEPassthroughStorageDriver) GetStorageType() string
- func (self *SNVMEPassthroughStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SNVMEPassthroughStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SNVMEPassthroughStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- type SNfsStorageDriver
- type SRbdStorageDriver
- func (self *SRbdStorageDriver) DoStorageUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SRbdStorageDriver) GetStorageType() string
- func (self *SRbdStorageDriver) OnDiskReset(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SRbdStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SRbdStorageDriver) RequestCreateSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error
- func (self *SRbdStorageDriver) RequestDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error
- func (self *SRbdStorageDriver) SnapshotIsOutOfChain(disk *models.SDisk) bool
- func (self *SRbdStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SRbdStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SRbdStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error
- func (self *SRbdStorageDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.StorageUpdateInput, error)
- type SSLVMStorageDriver
- func (s *SSLVMStorageDriver) GetStorageType() string
- func (s *SSLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (s *SSLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (s *SSLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) error
- func (self *SSLVMStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SBaseStorageDriver ¶
type SBaseStorageDriver struct { }
func (*SBaseStorageDriver) DoStorageUpdateTask ¶
func (self *SBaseStorageDriver) DoStorageUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, task taskman.ITask) error
func (*SBaseStorageDriver) OnDiskReset ¶
func (self *SBaseStorageDriver) OnDiskReset(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, data jsonutils.JSONObject) error
func (*SBaseStorageDriver) PostCreate ¶
func (self *SBaseStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SBaseStorageDriver) RequestCreateSnapshot ¶
func (*SBaseStorageDriver) RequestDeleteSnapshot ¶
func (*SBaseStorageDriver) SnapshotIsOutOfChain ¶
func (self *SBaseStorageDriver) SnapshotIsOutOfChain(disk *models.SDisk) bool
func (*SBaseStorageDriver) ValidateCreateData ¶
func (self *SBaseStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SBaseStorageDriver) ValidateCreateSnapshotData ¶
func (self *SBaseStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
func (*SBaseStorageDriver) ValidateSnapshotDelete ¶
func (*SBaseStorageDriver) ValidateUpdateData ¶
func (self *SBaseStorageDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, input api.StorageUpdateInput) (api.StorageUpdateInput, error)
type SCLVMStorageDriver ¶
type SCLVMStorageDriver struct {
SBaseStorageDriver
}
func (*SCLVMStorageDriver) GetStorageType ¶
func (s *SCLVMStorageDriver) GetStorageType() string
func (*SCLVMStorageDriver) PostCreate ¶
func (s *SCLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SCLVMStorageDriver) ValidateCreateData ¶
func (s *SCLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SCLVMStorageDriver) ValidateCreateSnapshotData ¶
func (s *SCLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
func (*SCLVMStorageDriver) ValidateSnapshotDelete ¶
type SGpfsStorageDriver ¶
type SGpfsStorageDriver struct {
SBaseStorageDriver
}
func (*SGpfsStorageDriver) GetStorageType ¶
func (self *SGpfsStorageDriver) GetStorageType() string
func (*SGpfsStorageDriver) PostCreate ¶
func (self *SGpfsStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SGpfsStorageDriver) ValidateCreateData ¶
func (self *SGpfsStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
type SLVMStorageDriver ¶
type SLVMStorageDriver struct {
SBaseStorageDriver
}
func (*SLVMStorageDriver) GetStorageType ¶
func (self *SLVMStorageDriver) GetStorageType() string
func (*SLVMStorageDriver) PostCreate ¶
func (self *SLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SLVMStorageDriver) ValidateCreateData ¶
func (self *SLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SLVMStorageDriver) ValidateCreateSnapshotData ¶
func (self *SLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
func (*SLVMStorageDriver) ValidateSnapshotDelete ¶
type SLocalStorageDriver ¶
type SLocalStorageDriver struct {
SBaseStorageDriver
}
func (*SLocalStorageDriver) GetStorageType ¶
func (self *SLocalStorageDriver) GetStorageType() string
func (*SLocalStorageDriver) PostCreate ¶
func (self *SLocalStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SLocalStorageDriver) ValidateCreateData ¶
func (self *SLocalStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
type SNVMEPassthroughStorageDriver ¶
type SNVMEPassthroughStorageDriver struct {
SBaseStorageDriver
}
func (*SNVMEPassthroughStorageDriver) GetStorageType ¶
func (self *SNVMEPassthroughStorageDriver) GetStorageType() string
func (*SNVMEPassthroughStorageDriver) PostCreate ¶
func (self *SNVMEPassthroughStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SNVMEPassthroughStorageDriver) ValidateCreateData ¶
func (self *SNVMEPassthroughStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SNVMEPassthroughStorageDriver) ValidateCreateSnapshotData ¶
func (self *SNVMEPassthroughStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
type SNfsStorageDriver ¶
type SNfsStorageDriver struct {
SBaseStorageDriver
}
func (*SNfsStorageDriver) GetStorageType ¶
func (self *SNfsStorageDriver) GetStorageType() string
func (*SNfsStorageDriver) PostCreate ¶
func (self *SNfsStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SNfsStorageDriver) ValidateCreateData ¶
func (self *SNfsStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
type SRbdStorageDriver ¶
type SRbdStorageDriver struct {
SBaseStorageDriver
}
func (*SRbdStorageDriver) DoStorageUpdateTask ¶
func (self *SRbdStorageDriver) DoStorageUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, task taskman.ITask) error
func (*SRbdStorageDriver) GetStorageType ¶
func (self *SRbdStorageDriver) GetStorageType() string
func (*SRbdStorageDriver) OnDiskReset ¶
func (self *SRbdStorageDriver) OnDiskReset(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, data jsonutils.JSONObject) error
func (*SRbdStorageDriver) PostCreate ¶
func (self *SRbdStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SRbdStorageDriver) RequestCreateSnapshot ¶
func (*SRbdStorageDriver) RequestDeleteSnapshot ¶
func (*SRbdStorageDriver) SnapshotIsOutOfChain ¶
func (self *SRbdStorageDriver) SnapshotIsOutOfChain(disk *models.SDisk) bool
func (*SRbdStorageDriver) ValidateCreateData ¶
func (self *SRbdStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SRbdStorageDriver) ValidateCreateSnapshotData ¶
func (self *SRbdStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
func (*SRbdStorageDriver) ValidateSnapshotDelete ¶
func (*SRbdStorageDriver) ValidateUpdateData ¶
func (self *SRbdStorageDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, input api.StorageUpdateInput) (api.StorageUpdateInput, error)
type SSLVMStorageDriver ¶
type SSLVMStorageDriver struct {
SBaseStorageDriver
}
func (*SSLVMStorageDriver) GetStorageType ¶
func (s *SSLVMStorageDriver) GetStorageType() string
func (*SSLVMStorageDriver) PostCreate ¶
func (s *SSLVMStorageDriver) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, storage *models.SStorage, data jsonutils.JSONObject)
func (*SSLVMStorageDriver) ValidateCreateData ¶
func (s *SSLVMStorageDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.StorageCreateInput) error
func (*SSLVMStorageDriver) ValidateCreateSnapshotData ¶
func (s *SSLVMStorageDriver) ValidateCreateSnapshotData(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, input *api.SnapshotCreateInput) error
func (*SSLVMStorageDriver) ValidateSnapshotDelete ¶
Click to show internal directories.
Click to hide internal directories.