Documentation ¶
Index ¶
- Variables
- type BindMountSourceCreator
- type BundleGenerator
- type BundleLoader
- type BundleSaver
- type Chowner
- type DepotBindMountSourceCreator
- type DirectoryDepot
- func (d *DirectoryDepot) Create(log lager.Logger, handle string, spec spec.DesiredContainerSpec) error
- func (d *DirectoryDepot) Destroy(log lager.Logger, handle string) error
- func (d *DirectoryDepot) GetDir() string
- func (d *DirectoryDepot) Handles() ([]string, error)
- func (d *DirectoryDepot) Lookup(log lager.Logger, handle string) (string, error)
- type OSChowner
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDoesNotExist = errors.New("does not exist")
Functions ¶
This section is empty.
Types ¶
type BindMountSourceCreator ¶
type BundleGenerator ¶
type DepotBindMountSourceCreator ¶
type DepotBindMountSourceCreator struct { BindMountPoints []string Chowner Chowner ContainerRootHostUID int ContainerRootHostGID int }
func (DepotBindMountSourceCreator) Create ¶
func (b DepotBindMountSourceCreator) Create(containerDir string, chown bool) ([]garden.BindMount, error)
Create will create and chown a file in the container's depot to be bind-mounted into the container. The name of this file will be the basename of the mount destination. A consequence of this is that we currently can't create mountpoints with the same basename, e.g. /var/foo and /etc/foo. This restriction doesn't affect user-provided bind mounts.
type DirectoryDepot ¶
type DirectoryDepot struct { BindMountSourceCreator BindMountSourceCreator // contains filtered or unexported fields }
a depot which stores containers as subdirs of a depot directory
func New ¶
func New(dir string, bundler BundleGenerator, bundleSaver BundleSaver, bindMountSourceCreator BindMountSourceCreator) *DirectoryDepot
func (*DirectoryDepot) Create ¶
func (d *DirectoryDepot) Create(log lager.Logger, handle string, spec spec.DesiredContainerSpec) error
func (*DirectoryDepot) Destroy ¶
func (d *DirectoryDepot) Destroy(log lager.Logger, handle string) error
func (*DirectoryDepot) GetDir ¶
func (d *DirectoryDepot) GetDir() string
func (*DirectoryDepot) Handles ¶
func (d *DirectoryDepot) Handles() ([]string, error)
Click to show internal directories.
Click to hide internal directories.