Documentation ¶
Index ¶
- Constants
- func GetLocalDockerServerStoragePath(ctx context.Context) (string, error)
- func HostPurge(ctx context.Context, options HostPurgeOptions) error
- func RunAutoHostCleanup(ctx context.Context, options AutoHostCleanupOptions) error
- func RunGCForLocalDockerServer(ctx context.Context, ...) error
- func RunHostCleanup(ctx context.Context, options HostCleanupOptions) error
- func ShouldRunAutoGCForLocalDockerServer(ctx context.Context, allowedVolumeUsagePercentage float64, ...) (bool, error)
- func ShouldRunAutoHostCleanup(ctx context.Context, options HostCleanupOptions) (bool, error)
- type AutoHostCleanupOptions
- type CommonOptions
- type HostCleanupOptions
- type HostPurgeOptions
- type ImagesLruSort
- type LocalDockerServerStorageCheckResult
- type LocalImageDesc
Constants ¶
View Source
const ( DefaultAllowedDockerStorageVolumeUsagePercentage float64 = 70.0 DefaultAllowedDockerStorageVolumeUsageMarginPercentage float64 = 5.0 DefaultAllowedLocalCacheVolumeUsagePercentage float64 = 70.0 DefaultAllowedLocalCacheVolumeUsageMarginPercentage float64 = 5.0 )
View Source
const (
MinImagesToDelete = 10
)
Variables ¶
This section is empty.
Functions ¶
func GetLocalDockerServerStoragePath ¶ added in v1.2.10
func RunAutoHostCleanup ¶ added in v1.2.11
func RunAutoHostCleanup(ctx context.Context, options AutoHostCleanupOptions) error
func RunGCForLocalDockerServer ¶ added in v1.2.10
func RunHostCleanup ¶ added in v1.2.11
func RunHostCleanup(ctx context.Context, options HostCleanupOptions) error
func ShouldRunAutoGCForLocalDockerServer ¶ added in v1.2.11
func ShouldRunAutoHostCleanup ¶ added in v1.2.11
func ShouldRunAutoHostCleanup(ctx context.Context, options HostCleanupOptions) (bool, error)
Types ¶
type AutoHostCleanupOptions ¶ added in v1.2.58
type AutoHostCleanupOptions struct { HostCleanupOptions ForceShouldRun bool }
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 LocalDockerServerStorageCheckResult ¶ added in v1.2.11
type LocalDockerServerStorageCheckResult struct { VolumeUsage volumeutils.VolumeUsage TotalImagesBytes uint64 ImagesDescs []*LocalImageDesc }
func GetLocalDockerServerStorageCheck ¶ added in v1.2.11
func GetLocalDockerServerStorageCheck(ctx context.Context, dockerServerStoragePath string) (*LocalDockerServerStorageCheckResult, error)
func (*LocalDockerServerStorageCheckResult) GetBytesToFree ¶ added in v1.2.11
func (checkResult *LocalDockerServerStorageCheckResult) GetBytesToFree(targetVolumeUsage float64) uint64
type LocalImageDesc ¶ added in v1.2.10
type LocalImageDesc struct { ImageSummary types.ImageSummary LastUsedAt time.Time }
Click to show internal directories.
Click to hide internal directories.