storagedrivers

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 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 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

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

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

type SNVMEPassthroughStorageDriver struct {
	SBaseStorageDriver
}

func (*SNVMEPassthroughStorageDriver) GetStorageType

func (self *SNVMEPassthroughStorageDriver) GetStorageType() string

func (*SNVMEPassthroughStorageDriver) PostCreate

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 (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)

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

func (self *SSLVMStorageDriver) ValidateSnapshotDelete(ctx context.Context, snapshot *models.SSnapshot) error

Jump to

Keyboard shortcuts

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