Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerConfig ¶
type Driver ¶
type Driver interface {
ImageDriver
VolumeDriver
}
Driver should implement the filesystem interaction
type Groot ¶
type Groot struct {
Driver Driver
Logger lager.Logger
ImagePuller ImagePuller
}
type ImageDriver ¶
type ImageDriver interface {
Bundle(logger lager.Logger, bundleID string, layerIDs []string, diskLimit int64) (runspec.Spec, error)
Delete(logger lager.Logger, bundleID string) error
Stats(logger lager.Logger, bundleID string) (VolumeStats, error)
WriteMetadata(logger lager.Logger, bundleID string, imageMetadata ImageMetadata) error
}
type ImageMetadata ¶
type ImageMetadata struct {
Size int64 `json:"size"`
}
type ImagePuller ¶
type ImagePuller interface {
Pull(logger lager.Logger, spec imagepuller.ImageSpec) (imagepuller.Image, error)
}
ImagePuller should be able to download and store a remote (or local) image and return all its layer information so that it can be bundled together by the driver
type SilentError ¶
type SilentError struct {
Underlying error
}
SilentError silences errors. urfave/cli already prints certain errors, we don't want to print them twice
func (SilentError) Error ¶
func (e SilentError) Error() string
type VolumeDriver ¶
type VolumeStats ¶
type VolumeStats struct {
DiskUsage DiskUsage `json:"disk_usage"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
fetcher
|
|
|
layerfetcher/layerfetcherfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
|
imagepullerfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
|
integration
|
|
|
cmd/foot
command
|
|
Click to show internal directories.
Click to hide internal directories.