Documentation ¶
Index ¶
- type StorageProvider
- func (driver *StorageProvider) CleanupStorage(context.Context, model.StorageSpec, storage.StorageVolume) error
- func (driver *StorageProvider) Explode(_ context.Context, spec model.StorageSpec) ([]model.StorageSpec, error)
- func (driver *StorageProvider) GetVolumeSize(_ context.Context, volume model.StorageSpec) (uint64, error)
- func (driver *StorageProvider) HasStorageLocally(_ context.Context, volume model.StorageSpec) (bool, error)
- func (driver *StorageProvider) IsInstalled(context.Context) (bool, error)
- func (driver *StorageProvider) PrepareStorage(_ context.Context, storageSpec model.StorageSpec) (storage.StorageVolume, error)
- func (driver *StorageProvider) Upload(context.Context, string) (model.StorageSpec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageProvider ¶
type StorageProvider struct {
LocalDirectoryPath string
}
func NewStorage ¶
func NewStorage(_ *system.CleanupManager, localDirectoryPath string) (*StorageProvider, error)
func (*StorageProvider) CleanupStorage ¶
func (driver *StorageProvider) CleanupStorage(context.Context, model.StorageSpec, storage.StorageVolume) error
func (*StorageProvider) Explode ¶
func (driver *StorageProvider) Explode(_ context.Context, spec model.StorageSpec) ([]model.StorageSpec, error)
func (*StorageProvider) GetVolumeSize ¶
func (driver *StorageProvider) GetVolumeSize(_ context.Context, volume model.StorageSpec) (uint64, error)
func (*StorageProvider) HasStorageLocally ¶
func (driver *StorageProvider) HasStorageLocally(_ context.Context, volume model.StorageSpec) (bool, error)
func (*StorageProvider) IsInstalled ¶
func (driver *StorageProvider) IsInstalled(context.Context) (bool, error)
func (*StorageProvider) PrepareStorage ¶
func (driver *StorageProvider) PrepareStorage( _ context.Context, storageSpec model.StorageSpec, ) (storage.StorageVolume, error)
func (*StorageProvider) Upload ¶
func (driver *StorageProvider) Upload(context.Context, string) (model.StorageSpec, error)
Click to show internal directories.
Click to hide internal directories.