Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main application
type GCR ¶
type GCR struct {
// contains filtered or unexported fields
}
GCR abstracts the google/go-containerregistry SDK
func (GCR) DeleteImage ¶
DeleteImage deletes an image
func (GCR) ListImages ¶
ListImages gets the list of images for the given repository name
func (GCR) ListRepositories ¶
func (g GCR) ListRepositories(registry string) []docker.Repository
ListRepositories gets the list of repositories for current registry
type ImageFilter ¶
type ImageFilter interface { // Apply should return true if the image should be planned for deletion Apply(i *docker.Image) bool }
ImageFilter is an interface for docker image filters
type SemVerTagNameFilter ¶
type SemVerTagNameFilter struct {
// contains filtered or unexported fields
}
SemVerTagNameFilter compares the image tags against regular expressions from the exclusion list.
func NewSemVerTagNameFilter ¶
func NewSemVerTagNameFilter(enabled bool) *SemVerTagNameFilter
NewSemVerTagNameFilter creates a new SemVerTagNameFilter
type Settings ¶
type Settings struct { Registry string Repositories []string Date time.Time UntaggedOnly bool DryRun bool AllRepositories bool ExcludedRepositories []string ExcludedTags []string ExcludedTagPatterns []string ExcludeSemVerTags bool }
Settings contains app Configuration
type TagNameFilter ¶
type TagNameFilter struct {
// contains filtered or unexported fields
}
TagNameFilter compares the image tags against the exclusion list.
type TagNameRegexFilter ¶
type TagNameRegexFilter struct {
// contains filtered or unexported fields
}
TagNameRegexFilter compares the image tags against regular expressions from the exclusion list.
func NewTagNameRegexFilter ¶
func NewTagNameRegexFilter(patterns []string) *TagNameRegexFilter
NewTagNameRegexFilter creates a new SemVerTagNameFilter
type UntaggedFilter ¶
type UntaggedFilter struct {
// contains filtered or unexported fields
}
UntaggedFilter filters images that have no tag