Documentation ¶
Index ¶
- Constants
- func IamCleaner(locksmith Locksmith, sm StoreMeasurer, gc GarbageCollector, ...) *cleaner
- type BaseImageInfo
- type BaseImagePuller
- type BaseImageSpec
- type Cleaner
- type CreateSpec
- type Creator
- type Deleter
- type DependencyManager
- type DiskUsage
- type GarbageCollector
- type IDMappingSpec
- type IDMappings
- type ImageCloner
- type ImageInfo
- type ImageSpec
- type LayerInfo
- type Lister
- type Locksmith
- type MetricsEmitter
- type MountInfo
- type RootFSConfigurer
- type Statser
- type StoreMeasurer
- type StoreNamespacer
- type VolumeStats
Constants ¶
View Source
const ( GlobalLockKey = "global-groot-lock" MetricImageCreationTime = "ImageCreationTime" MetricImageDeletionTime = "ImageDeletionTime" MetricImageStatsTime = "ImageStatsTime" MetricImageCleanTime = "ImageCleanTime" MetricDiskCachePercentage = "DiskCachePercentage" MetricDiskCommittedPercentage = "DiskCommittedPercentage" MetricDiskPurgeableCachePercentage = "DiskPurgeableCachePercentage" )
View Source
const ImageReferenceFormat = "image:%s"
View Source
const NamespaceFilename = "namespace.json"
Variables ¶
This section is empty.
Functions ¶
func IamCleaner ¶
func IamCleaner(locksmith Locksmith, sm StoreMeasurer, gc GarbageCollector, metricsEmitter MetricsEmitter, ) *cleaner
Types ¶
type BaseImageInfo ¶
type BaseImagePuller ¶
type BaseImagePuller interface { FetchBaseImageInfo(logger lager.Logger, spec BaseImageSpec) (BaseImageInfo, error) Pull(logger lager.Logger, imageInfo BaseImageInfo, spec BaseImageSpec) error }
type BaseImageSpec ¶
type BaseImageSpec struct { DiskLimit int64 ExcludeBaseImageFromQuota bool BaseImageSrc *url.URL UIDMappings []IDMappingSpec GIDMappings []IDMappingSpec OwnerUID int OwnerGID int }
type CreateSpec ¶
type CreateSpec struct { ID string BaseImageURL *url.URL DiskLimit int64 Mount bool ExcludeBaseImageFromQuota bool CleanOnCreate bool CleanOnCreateThresholdBytes int64 UIDMappings []IDMappingSpec GIDMappings []IDMappingSpec }
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func IamCreator ¶
func IamCreator( imageCloner ImageCloner, baseImagePuller BaseImagePuller, locksmith Locksmith, dependencyManager DependencyManager, metricsEmitter MetricsEmitter, cleaner Cleaner) *Creator
type Deleter ¶
type Deleter struct {
// contains filtered or unexported fields
}
func IamDeleter ¶
func IamDeleter(imageCloner ImageCloner, dependencyManager DependencyManager, metricsEmitter MetricsEmitter) *Deleter
type DependencyManager ¶
type GarbageCollector ¶
type IDMappingSpec ¶
type IDMappings ¶
type IDMappings struct { UIDMappings []IDMappingSpec GIDMappings []IDMappingSpec }
type ImageCloner ¶
type MetricsEmitter ¶
type RootFSConfigurer ¶
type Statser ¶
type Statser struct {
// contains filtered or unexported fields
}
func IamStatser ¶
func IamStatser(imageCloner ImageCloner, metricsEmitter MetricsEmitter) *Statser
type StoreMeasurer ¶
type StoreNamespacer ¶
type StoreNamespacer struct {
// contains filtered or unexported fields
}
func NewStoreNamespacer ¶
func NewStoreNamespacer(storePath string) *StoreNamespacer
func (*StoreNamespacer) ApplyMappings ¶
func (n *StoreNamespacer) ApplyMappings(uidMappings, gidMappings []IDMappingSpec) error
func (*StoreNamespacer) Read ¶
func (n *StoreNamespacer) Read() (IDMappings, error)
type VolumeStats ¶
type VolumeStats struct {
DiskUsage DiskUsage `json:"disk_usage"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.