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) 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) 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 NotImplementedCommandCreator
- 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
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) CreateCommand ¶
func (cc *DefaultCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
func (*DefaultCommandCreator) DestroyCommand ¶
func (*DefaultCommandCreator) MetricsCommand ¶
type ImagePlugin ¶
type ImagePlugin struct { UnprivilegedCommandCreator CommandCreator PrivilegedCommandCreator CommandCreator ImageSpecCreator ImageSpecCreator CommandRunner commandrunner.CommandRunner DefaultRootfs string }
func (*ImagePlugin) Create ¶
func (p *ImagePlugin) Create(log lager.Logger, handle string, spec gardener.RootfsSpec) (specs.Spec, 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) CreateCommand ¶
func (cc *NotImplementedCommandCreator) CreateCommand(log lager.Logger, handle string, spec gardener.RootfsSpec) (*exec.Cmd, error)
func (*NotImplementedCommandCreator) DestroyCommand ¶
func (*NotImplementedCommandCreator) MetricsCommand ¶
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.