Documentation
¶
Index ¶
- Variables
- type BindMountSourceCreator
- type BundleLoader
- type BundleLookupper
- type BundleSaver
- type Chowner
- type DepotBindMountSourceCreator
- type DirectoryDepot
- func (d *DirectoryDepot) Create(log lager.Logger, handle string, bundle goci.Bndl) (string, error)
- func (d *DirectoryDepot) CreatedTime(log lager.Logger, handle string) (time.Time, 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) Load(log lager.Logger, handle string) (goci.Bndl, error)
- func (d *DirectoryDepot) Lookup(log lager.Logger, handle string) (string, error)
- type NetworkDepot
- 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 BundleLookupper ¶
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 {
// contains filtered or unexported fields
}
a depot which stores containers as subdirs of a depot directory
func New ¶
func New(dir string, bundleSaver BundleSaver, bundleLoader BundleLoader) *DirectoryDepot
func (*DirectoryDepot) CreatedTime ¶
func (d *DirectoryDepot) CreatedTime(log lager.Logger, handle string) (time.Time, 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)
type NetworkDepot ¶
type NetworkDepot struct {
// contains filtered or unexported fields
}
func NewNetworkDepot ¶
func NewNetworkDepot( dir string, bindMountSourceCreator BindMountSourceCreator, ) NetworkDepot
func (NetworkDepot) Destroy ¶
func (d NetworkDepot) Destroy(log lager.Logger, handle string) error
func (NetworkDepot) SetupBindMounts ¶
Click to show internal directories.
Click to hide internal directories.