Documentation ¶
Overview ¶
Package config holds the configuration schema for image replacement rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Exclude []ExclusionRule `json:"exclude"` Replace []ReplacementRule `json:"replace"` }
Config represents the schema of the webhook's configuration.
type ExclusionRule ¶
type ExclusionRule struct {
Prefix string `json:"prefix"`
}
ExclusionRule represents a rule for an image prefix that should explicitly be excluded from any replacements.
func (*ExclusionRule) Validate ¶ added in v0.0.2
func (r *ExclusionRule) Validate() error
Validate validates the exclusion rule.
type ReplacementRule ¶
type ReplacementRule struct { Prefix string `json:"prefix"` Replacement string `json:"replacement"` }
ReplacementRule represents a rule that matches an image prefix and replaces it with the provided replacement.
func (*ReplacementRule) Validate ¶ added in v0.0.2
func (r *ReplacementRule) Validate() error
Validate validates the replacement rule.
Click to show internal directories.
Click to hide internal directories.