storagedrivers

package
v0.3.10-0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

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 (self *SBaseStorageDriver) RequestCreateSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error

func (*SBaseStorageDriver) RequestDeleteSnapshot

func (self *SBaseStorageDriver) RequestDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error

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 (self *SBaseStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error

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 (self *SRbdStorageDriver) RequestCreateSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error

func (*SRbdStorageDriver) RequestDeleteSnapshot

func (self *SRbdStorageDriver) RequestDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, task taskman.ITask) error

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 (self *SRbdStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error

func (*SRbdStorageDriver) ValidateUpdateData

func (self *SRbdStorageDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, input api.StorageUpdateInput) (api.StorageUpdateInput, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL