Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = C{}
Functions ¶
func HasCronSchedule ¶
func HasCronSchedule() bool
Types ¶
type NotTouchedPolicy ¶ added in v0.3.0
type NotTouchedPolicy struct { // Time is time period in second. Time int64 `yaml:"time"` }
NotTouchedPolicy cleans images that are recently not touched within given period
type Policy ¶
type Policy struct { // Type of the policy, e.g. "number", "regex", "recentlyNotTouched" Type string `yaml:"type"` // NumPolicy configures policy to retain given number tags in repo NumPolicy *NumPolicy `yaml:"numberPolicy,omitempty"` // RegexPolicy configures policy to clean images that match the regex patterns RegexPolicy *RegexPolicy `yaml:"regexPolicy,omitempty"` // TouchPolicy configures policy to clean images that are recently not touched within given period NotTouchedPolicy *NotTouchedPolicy `yaml:"notTouchedPolicy,omitempty"` // RetainTags is tag patterns to be retained RetainTags []string `yaml:"retainTags"` }
type RegexPolicy ¶
type RegexPolicy struct { // Repos contains list of regex to match repo name Repos []string `yaml:"repos"` /// Tags contains list of regex to match tag name Tags []string `yaml:"tags"` }
RegexPolicy removes all images that match the given regex.
Click to show internal directories.
Click to hide internal directories.