Documentation ¶
Index ¶
- type CakeOrdinator
- func (c *CakeOrdinator) Create(logger lager.Logger, id string, spec gardener.RootfsSpec) (specs.Spec, error)
- func (c *CakeOrdinator) Destroy(logger lager.Logger, id string) error
- func (c *CakeOrdinator) GC(logger lager.Logger) error
- func (c *CakeOrdinator) Metrics(logger lager.Logger, id string, _ bool) (garden.ContainerDiskStat, error)
- type ContainerLayerCreator
- type GCer
- type GetUsageFunc
- type Graph
- type LayerCreator
- type Mapper
- type MetricsAdapter
- type Metricser
- type Namespacer
- type RepositoryFetcher
- type SimpleVolumeCreator
- type StringMapper
- type Translator
- type UidNamespacer
- type UidTranslator
- type VolumeCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CakeOrdinator ¶
type CakeOrdinator struct {
// contains filtered or unexported fields
}
CakeOrdinator manages a cake, fetching layers as neccesary
func NewCakeOrdinator ¶
func NewCakeOrdinator(cake layercake.Cake, fetcher RepositoryFetcher, layerCreator LayerCreator, metrics Metricser, gc GCer) *CakeOrdinator
New creates a new cake-ordinator, there should only be one CakeOrdinator for a particular cake.
func Wire ¶
func Wire( logger lager.Logger, runner *logging.Runner, graphRoot string, rootFS string, dockerRegistry string, insecureRegistries []string, persistentImages []string, cleanupThresholdInMegabytes int, uidMappings idmapper.MappingList, gidMappings idmapper.MappingList, ) *CakeOrdinator
func (*CakeOrdinator) Create ¶
func (c *CakeOrdinator) Create(logger lager.Logger, id string, spec gardener.RootfsSpec) (specs.Spec, error)
func (*CakeOrdinator) Destroy ¶
func (c *CakeOrdinator) Destroy(logger lager.Logger, id string) error
func (*CakeOrdinator) Metrics ¶
func (c *CakeOrdinator) Metrics(logger lager.Logger, id string, _ bool) (garden.ContainerDiskStat, error)
type ContainerLayerCreator ¶
type ContainerLayerCreator struct {
// contains filtered or unexported fields
}
func NewLayerCreator ¶
func NewLayerCreator( graph Graph, volumeCreator VolumeCreator, namespacer Namespacer, ) *ContainerLayerCreator
func (*ContainerLayerCreator) Create ¶
func (provider *ContainerLayerCreator) Create(log lager.Logger, id string, parentImage *repository_fetcher.Image, spec gardener.RootfsSpec) (string, []string, error)
type GetUsageFunc ¶
type LayerCreator ¶
type LayerCreator interface {
Create(log lager.Logger, id string, parentImage *repository_fetcher.Image, spec gardener.RootfsSpec) (string, []string, error)
}
type MetricsAdapter ¶
type MetricsAdapter struct {
// contains filtered or unexported fields
}
MetricsAdapter implements cakeordinator.Metricser using existing quota_manager.GetUsage func
func NewMetricsAdapter ¶
func NewMetricsAdapter(fn GetUsageFunc, id2path func(layercake.ID) string) MetricsAdapter
func (MetricsAdapter) Metrics ¶
func (m MetricsAdapter) Metrics(logger lager.Logger, id layercake.ID) (garden.ContainerDiskStat, error)
type Namespacer ¶
type RepositoryFetcher ¶
type SimpleVolumeCreator ¶
type SimpleVolumeCreator struct{}
SimpleVolumeCreator implements volume creation by (simply) creating the relevant directories. If a directory already exists in the image it is emptied.
type StringMapper ¶
type Translator ¶
type UidNamespacer ¶
type UidNamespacer struct {
Translator Translator
}
func (*UidNamespacer) CacheKey ¶
func (n *UidNamespacer) CacheKey() string
type UidTranslator ¶
type UidTranslator struct {
// contains filtered or unexported fields
}
func NewUidTranslator ¶
func NewUidTranslator(uidMappings StringMapper, gidMappings StringMapper) *UidTranslator
func (UidTranslator) CacheKey ¶
func (u UidTranslator) CacheKey() string
type VolumeCreator ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.