manager

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const MinStoreSizeBytes = 1024 * 1024 * 200

Variables

This section is empty.

Functions

This section is empty.

Types

type InitSpec

type InitSpec struct {
	UIDMappings    []groot.IDMappingSpec
	GIDMappings    []groot.IDMappingSpec
	StoreSizeBytes int64
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(storePath string, storeNamespacer StoreNamespacer, volumeDriver base_image_puller.VolumeDriver, imageDriver image_cloner.ImageDriver, storeDriver StoreDriver) *Manager

func (*Manager) DeleteStore

func (m *Manager) DeleteStore(logger lager.Logger, locksmith groot.Locksmith) error

func (*Manager) InitStore

func (m *Manager) InitStore(logger lager.Logger, spec InitSpec) error

func (*Manager) IsStoreInitialized added in v0.20.0

func (m *Manager) IsStoreInitialized(logger lager.Logger) bool

type StoreDriver

type StoreDriver interface {
	ConfigureStore(logger lager.Logger, storePath string, ownerUID, ownerGID int) error
	ValidateFileSystem(logger lager.Logger, path string) error
	InitFilesystem(logger lager.Logger, filesystemPath, storePath string) error
}

type StoreNamespacer added in v0.20.0

type StoreNamespacer interface {
	ApplyMappings(uidMappings, gidMappings []groot.IDMappingSpec) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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