Documentation ¶
Index ¶
Constants ¶
const ( // AlphabeticalOrderAsc ascending order AlphabeticalOrderAsc = "ASC" // AlphabeticalOrderDesc descending order AlphabeticalOrderDesc = "DESC" )
const ( // NumericalOrderAsc ascending order NumericalOrderAsc = "ASC" // NumericalOrderDesc descending order NumericalOrderDesc = "DESC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alphabetical ¶
type Alphabetical struct {
Order string
}
Alphabetical representes a alphabetical ordering policy
func NewAlphabetical ¶
func NewAlphabetical(order string) (*Alphabetical, error)
NewAlphabetical constructs a Alphabetical object validating the provided order argument
type Numerical ¶ added in v0.6.0
type Numerical struct {
Order string
}
Numerical representes a Numerical ordering policy
func NewNumerical ¶ added in v0.6.0
NewNumerical constructs a Numerical object validating the provided order argument
type Policer ¶
Policer is an interface representing a policy implementation type
func PolicerFromSpec ¶
func PolicerFromSpec(choice imagev1.ImagePolicyChoice) (Policer, error)
PolicerFromSpec constructs a new policy object based on
type RegexFilter ¶ added in v0.2.0
type RegexFilter struct { Regexp *regexp.Regexp Replace string // contains filtered or unexported fields }
RegexFilter represents a regular expression filter
func NewRegexFilter ¶ added in v0.2.0
func NewRegexFilter(pattern string, replace string) (*RegexFilter, error)
NewRegexFilter constructs new RegexFilter object
func (*RegexFilter) Apply ¶ added in v0.2.0
func (f *RegexFilter) Apply(list []string)
Apply will construct the filtered list of tags based on the provided list of tags
func (*RegexFilter) GetOriginalTag ¶ added in v0.2.0
func (f *RegexFilter) GetOriginalTag(tag string) string
GetOriginalTag returns the original tag before replace extraction
func (*RegexFilter) Items ¶ added in v0.2.0
func (f *RegexFilter) Items() []string
Items returns the list of filtered tags