dummy

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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