Documentation ¶
Index ¶
- Constants
- func GenerateImageConfig(layerSHAs ...string) imagespec.Image
- func GenerateIndex(manifestSHA string) imagespec.Index
- func GenerateManifest(layers []Layer, configSHA string) imagespec.Manifest
- type CommandCreator
- type DefaultCommandCreator
- func (cc *DefaultCommandCreator) CapacityCommand(log lager.Logger) *exec.Cmd
- func (cc *DefaultCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
- func (cc *DefaultCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd
- func (cc *DefaultCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd
- type ImagePlugin
- func (p *ImagePlugin) Capacity(log lager.Logger) (uint64, error)
- func (p *ImagePlugin) Create(log lager.Logger, handle string, spec gardener.RootfsSpec) (specs.Spec, error)
- func (p *ImagePlugin) Destroy(log lager.Logger, handle string) error
- func (p *ImagePlugin) GC(log lager.Logger) error
- func (p *ImagePlugin) Metrics(log lager.Logger, handle string, namespaced bool) (garden.ContainerDiskStat, error)
- type ImageSpecCreator
- type Layer
- type Logger
- type NotImplementedCommandCreator
- func (cc *NotImplementedCommandCreator) CapacityCommand(log lager.Logger) *exec.Cmd
- func (cc *NotImplementedCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
- func (cc *NotImplementedCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd
- func (cc *NotImplementedCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd
- type OCIImageSpecCreator
- type Relogger
Constants ¶
View Source
const ( ImageSpecSchemaVersion = 2 ImageSpecBaseDirectoryAnnotationKey = "org.cloudfoundry.experimental.image.base-directory" )
View Source
const PreloadedPlusLayerScheme = "preloaded+layer"
Variables ¶
This section is empty.
Functions ¶
func GenerateImageConfig ¶
func GenerateIndex ¶
Types ¶
type CommandCreator ¶
type DefaultCommandCreator ¶
func (*DefaultCommandCreator) CapacityCommand ¶
func (cc *DefaultCommandCreator) CapacityCommand(log lager.Logger) *exec.Cmd
func (*DefaultCommandCreator) CreateCommand ¶
func (cc *DefaultCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
func (*DefaultCommandCreator) DestroyCommand ¶
func (cc *DefaultCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd
func (*DefaultCommandCreator) MetricsCommand ¶
func (cc *DefaultCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd
type ImagePlugin ¶
type ImagePlugin struct { UnprivilegedCommandCreator CommandCreator PrivilegedCommandCreator CommandCreator ImageSpecCreator ImageSpecCreator CommandRunner commandrunner.CommandRunner DefaultRootfs string }
func (*ImagePlugin) Capacity ¶
func (p *ImagePlugin) Capacity(log lager.Logger) (uint64, error)
func (*ImagePlugin) Create ¶
func (p *ImagePlugin) Create(log lager.Logger, handle string, spec gardener.RootfsSpec) (specs.Spec, error)
func (*ImagePlugin) Destroy ¶
func (p *ImagePlugin) Destroy(log lager.Logger, handle string) error
func (*ImagePlugin) GC ¶
func (p *ImagePlugin) GC(log lager.Logger) error
func (*ImagePlugin) Metrics ¶
func (p *ImagePlugin) Metrics(log lager.Logger, handle string, namespaced bool) (garden.ContainerDiskStat, error)
type ImageSpecCreator ¶
type NotImplementedCommandCreator ¶
type NotImplementedCommandCreator struct {
Err error
}
func (*NotImplementedCommandCreator) CapacityCommand ¶
func (cc *NotImplementedCommandCreator) CapacityCommand(log lager.Logger) *exec.Cmd
func (*NotImplementedCommandCreator) CreateCommand ¶
func (cc *NotImplementedCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
func (*NotImplementedCommandCreator) DestroyCommand ¶
func (cc *NotImplementedCommandCreator) DestroyCommand(log lager.Logger, handle string) *exec.Cmd
func (*NotImplementedCommandCreator) MetricsCommand ¶
func (cc *NotImplementedCommandCreator) MetricsCommand(log lager.Logger, handle string) *exec.Cmd
type OCIImageSpecCreator ¶
type OCIImageSpecCreator struct { DepotDir string ImageConfigGenerator func(layerSHAs ...string) imagespec.Image ManifestGenerator func(layers []Layer, configSHA string) imagespec.Manifest IndexGenerator func(manifestSHA string) imagespec.Index }
func NewOCIImageSpecCreator ¶
func NewOCIImageSpecCreator(depotDir string) *OCIImageSpecCreator
func (*OCIImageSpecCreator) CreateImageSpec ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.