Documentation ¶
Index ¶
- Constants
- type FakeStorageProvider
- func (fake FakeStorageProvider) CreateStorage(sp *serviceprovider.Container, net *entity.Storage) error
- func (fake FakeStorageProvider) DeleteStorage(sp *serviceprovider.Container, net *entity.Storage) error
- func (fake FakeStorageProvider) ValidateBeforeCreating(sp *serviceprovider.Container, net *entity.Storage) error
- type NFSStorageProvider
- func (nfs NFSStorageProvider) CreateStorage(sp *serviceprovider.Container, storage *entity.Storage) error
- func (nfs NFSStorageProvider) DeleteStorage(sp *serviceprovider.Container, storage *entity.Storage) error
- func (nfs NFSStorageProvider) ValidateBeforeCreating(sp *serviceprovider.Container, storage *entity.Storage) error
- type StorageProvider
Constants ¶
View Source
const ( NFSProvisionerPrefix string = "nfs-provisioner-" NFSStorageClassPrefix string = "nfs-storageclass-" )
the const for the provisioner or storageclass of nfs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStorageProvider ¶
type FakeStorageProvider struct {
entity.FakeStorage
}
FakeStorageProvider is the structure for Fake Storage Provider
func (FakeStorageProvider) CreateStorage ¶
func (fake FakeStorageProvider) CreateStorage(sp *serviceprovider.Container, net *entity.Storage) error
CreateStorage will create storage
func (FakeStorageProvider) DeleteStorage ¶
func (fake FakeStorageProvider) DeleteStorage(sp *serviceprovider.Container, net *entity.Storage) error
DeleteStorage will delete storage
func (FakeStorageProvider) ValidateBeforeCreating ¶
func (fake FakeStorageProvider) ValidateBeforeCreating(sp *serviceprovider.Container, net *entity.Storage) error
ValidateBeforeCreating will validate StorageProvider before creating
type NFSStorageProvider ¶
NFSStorageProvider is the structure for NFS storage provider
func (NFSStorageProvider) CreateStorage ¶
func (nfs NFSStorageProvider) CreateStorage(sp *serviceprovider.Container, storage *entity.Storage) error
CreateStorage will create storage depandent on NFS storage srovider
func (NFSStorageProvider) DeleteStorage ¶
func (nfs NFSStorageProvider) DeleteStorage(sp *serviceprovider.Container, storage *entity.Storage) error
DeleteStorage will delete stroage
func (NFSStorageProvider) ValidateBeforeCreating ¶
func (nfs NFSStorageProvider) ValidateBeforeCreating(sp *serviceprovider.Container, storage *entity.Storage) error
ValidateBeforeCreating will validate the nfs storage provider before creating
type StorageProvider ¶
type StorageProvider interface { ValidateBeforeCreating(sp *serviceprovider.Container, net *entity.Storage) error CreateStorage(sp *serviceprovider.Container, net *entity.Storage) error DeleteStorage(sp *serviceprovider.Container, net *entity.Storage) error }
StorageProvider is storage provider interface
func GetStorageProvider ¶
func GetStorageProvider(storage *entity.Storage) (StorageProvider, error)
GetStorageProvider will get storage provider
Click to show internal directories.
Click to hide internal directories.