gc

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package gc provides tested logic to determine which images should be deleted, decoupled from external libraries and API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImagesToDelete

func ImagesToDelete(all model.Images, params Params) model.Images

func ImagesToDelete takes a list of all images in a repository and returns a list of images to delete satisfying the provided KeepCounts and other configuration.

Types

type Params

type Params struct {
	KeepCounts     map[string]uint
	DeleteUntagged bool
}

type Params provides configuration to ImagesToDelete()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL