provider

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Loop provider types.
	LoopProviderType     = storage.ProviderType("loop")
	HostLoopProviderType = storage.ProviderType("hostloop")
)
View Source
const (
	RootfsProviderType = storage.ProviderType("rootfs")
)
View Source
const (
	TmpfsProviderType = storage.ProviderType("tmpfs")
)

Variables

This section is empty.

Functions

func CommonProviders

func CommonProviders() map[storage.ProviderType]storage.Provider

CommonProviders returns the storage providers used by all environments.

func NewManagedFilesystemSource

func NewManagedFilesystemSource(
	volumeBlockDevices map[names.VolumeTag]storage.BlockDevice,
	filesystems map[names.FilesystemTag]storage.Filesystem,
) storage.FilesystemSource

NewManagedFilesystemSource returns a storage.FilesystemSource that manages filesystems on block devices on the host machine.

The parameters are maps that the caller will update with information about block devices and filesystems created by the source. The caller must not update the maps during calls to the source's methods.

func ValidateConfig

func ValidateConfig(p storage.Provider, cfg *storage.Config) error

ValidateConfig performs storage provider config validation, including any common validation.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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