Documentation ¶
Index ¶
- type CakeOrdinator
- func (c *CakeOrdinator) Create(logger lager.Logger, id string, spec Spec) (string, []string, 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) (garden.ContainerDiskStat, error)
- type ContainerLayerCreator
- type GCer
- type GetUsageFunc
- type Graph
- type LayerCreator
- type Mapper
- type MappingList
- type MetricsAdapter
- type Metricser
- type Namespacer
- type RepositoryFetcher
- type SimpleVolumeCreator
- type Spec
- 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 (*CakeOrdinator) Destroy ¶
func (c *CakeOrdinator) Destroy(logger lager.Logger, id string) error
func (*CakeOrdinator) Metrics ¶
func (c *CakeOrdinator) Metrics(logger lager.Logger, id string) (garden.ContainerDiskStat, error)
type ContainerLayerCreator ¶
type ContainerLayerCreator struct {
// contains filtered or unexported fields
}
func NewLayerCreator ¶
func NewLayerCreator( graph Graph, volumeCreator VolumeCreator, namespacer Namespacer, ) *ContainerLayerCreator
type GetUsageFunc ¶
type LayerCreator ¶
type MappingList ¶
type MappingList []specs.IDMapping
func (MappingList) Map ¶
func (m MappingList) Map(id int) int
func (MappingList) String ¶
func (m MappingList) String() string
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 |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.