Documentation ¶
Index ¶
- type StorageProvider
- func (p *StorageProvider) Dynamic() bool
- func (p *StorageProvider) FilesystemSource(environConfig *config.Config, providerConfig *storage.Config) (storage.FilesystemSource, error)
- func (p *StorageProvider) Scope() storage.Scope
- func (p *StorageProvider) Supports(kind storage.StorageKind) bool
- func (p *StorageProvider) ValidateConfig(providerConfig *storage.Config) error
- func (p *StorageProvider) VolumeSource(environConfig *config.Config, providerConfig *storage.Config) (storage.VolumeSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageProvider ¶
type StorageProvider struct { // StorageScope defines the scope of storage managed by this provider. StorageScope storage.Scope // IsDynamic defines whether or not the provider reports that it supports // dynamic provisioning. IsDynamic bool // VolumeSourceFunc will be called by VolumeSource, if non-nil; // otherwise VolumeSource will return a NotSupported error. VolumeSourceFunc func(*config.Config, *storage.Config) (storage.VolumeSource, error) // FilesystemSourceFunc will be called by FilesystemSource, if non-nil; // otherwise FilesystemSource will return a NotSupported error. FilesystemSourceFunc func(*config.Config, *storage.Config) (storage.FilesystemSource, error) // ValidateConfigFunc will be called by ValidateConfig, if non-nil; // otherwise ValidateConfig returns nil. ValidateConfigFunc func(*storage.Config) error // SupportsFunc will be called by Supports, if non-nil; otherwise, // Supports returns true. SupportsFunc func(kind storage.StorageKind) bool }
StorageProvider is an implementation of storage.Provider, suitable for testing. Each method's default behaviour may be overridden by setting the corresponding Func field.
func (*StorageProvider) Dynamic ¶
func (p *StorageProvider) Dynamic() bool
Dynamic is defined on storage.Provider.
func (*StorageProvider) FilesystemSource ¶
func (p *StorageProvider) FilesystemSource(environConfig *config.Config, providerConfig *storage.Config) (storage.FilesystemSource, error)
FilesystemSource is defined on storage.Provider.
func (*StorageProvider) Scope ¶
func (p *StorageProvider) Scope() storage.Scope
Scope is defined on storage.Provider.
func (*StorageProvider) Supports ¶
func (p *StorageProvider) Supports(kind storage.StorageKind) bool
Supports is defined on storage.Provider.
func (*StorageProvider) ValidateConfig ¶
func (p *StorageProvider) ValidateConfig(providerConfig *storage.Config) error
ValidateConfig is defined on storage.Provider.
func (*StorageProvider) VolumeSource ¶
func (p *StorageProvider) VolumeSource(environConfig *config.Config, providerConfig *storage.Config) (storage.VolumeSource, error)
VolumeSource is defined on storage.Provider.
Click to show internal directories.
Click to hide internal directories.