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 SGpfsStorageDriver
- type SLocalStorageDriver
- 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)
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 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 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 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)
Click to show internal directories.
Click to hide internal directories.