rootfs_provider

package
v0.0.0-...-9038be0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copier

type Copier interface {
	Copy(src, dest string) error
}

type GraphDriver

type GraphDriver interface {
	graphdriver.Driver
}

type Mapper

type Mapper interface {
	Map(id int) int
}

type Mapping

type Mapping struct {
	FromID int
	ToID   int
	Size   int
}

type MappingList

type MappingList []Mapping

func (MappingList) Map

func (m MappingList) Map(id int) int

type Namespacer

type Namespacer interface {
	Namespace(rootfsPath string) error
}

type RootFSProvider

type RootFSProvider interface {
	ProvideRootFS(logger lager.Logger, id string, rootfs *url.URL, namespaced bool) (mountpoint string, envvar process.Env, err error)
	CleanupRootFS(logger lager.Logger, id string) error
}

func NewDocker

func NewDocker(
	repoFetcher repository_fetcher.RepositoryFetcher,
	graphDriver GraphDriver,
	volumeCreator VolumeCreator,
	namespacer Namespacer,
	copier Copier,
	clock clock.Clock,
) (RootFSProvider, error)

type ShellOutCp

type ShellOutCp struct {
	WorkDir string
}

func (ShellOutCp) Copy

func (s ShellOutCp) Copy(src, dest string) error

type SimpleVolumeCreator

type SimpleVolumeCreator struct{}

SimpleVolumeCreator implements volume creation by (simply) creating the relevant directories. If a directory already exists in the image it is emptied.

func (SimpleVolumeCreator) Create

func (SimpleVolumeCreator) Create(root string, volume string) error

type UidNamespacer

type UidNamespacer struct {
	Translator filepath.WalkFunc
	Logger     lager.Logger
}

func (*UidNamespacer) Namespace

func (n *UidNamespacer) Namespace(rootfsPath string) error

type UidTranslator

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

func NewUidTranslator

func NewUidTranslator(uidMappings Mapper, gidMappings Mapper) *UidTranslator

func (UidTranslator) Translate

func (u UidTranslator) Translate(path string, info os.FileInfo, err error) error

type VolumeCreator

type VolumeCreator interface {
	Create(root string, volume string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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