Documentation ¶
Index ¶
- Constants
- func AllowedContainerProvider(providerType storage.ProviderType) bool
- func CommonStorageProviders() storage.ProviderRegistry
- func NewManagedFilesystemSource(volumeBlockDevices map[names.VolumeTag]blockdevice.BlockDevice, ...) storage.FilesystemSource
- func NewStorageProviderRegistry(reg storage.ProviderRegistry) storage.ProviderRegistry
Constants ¶
const ( // Loop provider types. LoopProviderType = storage.ProviderType("loop") HostLoopProviderType = storage.ProviderType("hostloop") )
const (
RootfsProviderType = storage.ProviderType("rootfs")
)
const (
TmpfsProviderType = storage.ProviderType("tmpfs")
)
Variables ¶
This section is empty.
Functions ¶
func AllowedContainerProvider ¶
func AllowedContainerProvider(providerType storage.ProviderType) bool
AllowedContainerProvider returns true if the specified storage type can be used with a vm container. Currently, this is a very restricted list, just the storage types created on disk or in memory. In future we'll need to look at supporting passthrough/bindmount storage.
func CommonStorageProviders ¶
func CommonStorageProviders() storage.ProviderRegistry
CommonStorageProviders returns a storage.ProviderRegistry that contains the common storage providers.
func NewManagedFilesystemSource ¶
func NewManagedFilesystemSource( volumeBlockDevices map[names.VolumeTag]blockdevice.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 NewStorageProviderRegistry ¶
func NewStorageProviderRegistry(reg storage.ProviderRegistry) storage.ProviderRegistry
NewStorageProviderRegistry returns a storage.ProviderRegistry that chains the provided registry with the common storage providers.
Types ¶
This section is empty.