Documentation
¶
Index ¶
- Constants
- func AcquireSharedHostStorageLock(ctx context.Context) (lockgate.LockHandle, error)
- func GetLocalDockerServerStoragePath(ctx context.Context) (string, error)
- func HostCleanup(ctx context.Context, options HostCleanupOptions) error
- func HostPurge(ctx context.Context, options HostPurgeOptions) error
- func RunGCForLocalDockerServer(ctx context.Context, opts LocalDockerServerGCOptions) error
- func ShouldRunGCForLocalDockerServer(ctx context.Context, opts LocalDockerServerGCOptions) (bool, error)
- type CommonOptions
- type HostCleanupOptions
- type HostPurgeOptions
- type ImagesLruSort
- type LocalDockerServerGCOptions
- type LocalImageDesc
- type VolumeUsage
Constants ¶
View Source
const ( DefaultAllowedVolumeUsagePercentageThreshold float64 = 80.0 LockName = "host_cleaning.GC" )
Variables ¶
This section is empty.
Functions ¶
func AcquireSharedHostStorageLock ¶ added in v1.2.10
func AcquireSharedHostStorageLock(ctx context.Context) (lockgate.LockHandle, error)
AcquireSharedStorageLock should be called in every process that normally work with the storage
func GetLocalDockerServerStoragePath ¶ added in v1.2.10
func HostCleanup ¶
func HostCleanup(ctx context.Context, options HostCleanupOptions) error
func RunGCForLocalDockerServer ¶ added in v1.2.10
func RunGCForLocalDockerServer(ctx context.Context, opts LocalDockerServerGCOptions) error
func ShouldRunGCForLocalDockerServer ¶ added in v1.2.10
func ShouldRunGCForLocalDockerServer(ctx context.Context, opts LocalDockerServerGCOptions) (bool, error)
Types ¶
type CommonOptions ¶
type HostCleanupOptions ¶
type HostPurgeOptions ¶
type ImagesLruSort ¶ added in v1.2.10
type ImagesLruSort []*LocalImageDesc
func (ImagesLruSort) Len ¶ added in v1.2.10
func (a ImagesLruSort) Len() int
func (ImagesLruSort) Less ¶ added in v1.2.10
func (a ImagesLruSort) Less(i, j int) bool
func (ImagesLruSort) Swap ¶ added in v1.2.10
func (a ImagesLruSort) Swap(i, j int)
type LocalDockerServerGCOptions ¶ added in v1.2.10
type LocalImageDesc ¶ added in v1.2.10
type LocalImageDesc struct {
ImageSummary types.ImageSummary
LastUsedAt time.Time
}
type VolumeUsage ¶ added in v1.2.10
func GetVolumeUsageByPath ¶ added in v1.2.10
func GetVolumeUsageByPath(ctx context.Context, path string) (VolumeUsage, error)
Click to show internal directories.
Click to hide internal directories.