Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultFilePattern specifies accepted Helm chart metadata filename DefaultFilePattern [1]string = [1]string{"update-compose.yaml"} )
Functions ¶
This section is empty.
Types ¶
type MatchingRule ¶
type MatchingRule struct {
// Path specifies a Updatecli compose filepath pattern, the pattern requires to match all of name, not just a subpart of the path.
Path string
// Policies specifies a Updatecli policy
Policies map[string]string
}
MatchingRule allows to specifies rules to identify manifest
type MatchingRules ¶
type MatchingRules []MatchingRule
type Spec ¶
type Spec struct {
// rootdir defines the root directory used to recursively search for Updatecli manifest
RootDir string `yaml:",omitempty"`
// Ignore allows to specify rule to ignore "autodiscovery" a specific Updatecli based on a rule
Ignore MatchingRules `yaml:",omitempty"`
// Only allows to specify rule to only "autodiscovery" manifest for a specific Updatecli based on a rule
Only MatchingRules `yaml:",omitempty"`
// Auths provides a map of registry credentials where the key is the registry URL without scheme
Auths map[string]docker.InlineKeyChain `yaml:",omitempty"`
/*
versionfilter provides parameters to specify the version pattern used when generating manifest.
kind - semver
versionfilter of kind `semver` uses semantic versioning as version filtering
pattern accepts one of:
`patch` - patch only update patch version
`minor` - minor only update minor version
`major` - major only update major versions
`a version constraint` such as `>= 1.0.0`
kind - regex
versionfilter of kind `regex` uses regular expression as version filtering
pattern accepts a valid regular expression
example:
“`
versionfilter:
kind: semver
pattern: minor
“`
and its type like regex, semver, or just latest.
*/
VersionFilter version.Filter `yaml:",omitempty"`
}
Spec defines the Updatecli parameters.
type Updatecli ¶
type Updatecli struct {
// contains filtered or unexported fields
}
Updatecli hold all information needed to generate updatecli manifest.
func (Updatecli) DiscoverManifests ¶
DiscoverManifests search for Updatecli compose file and generate Updatecli manifests.
Click to show internal directories.
Click to hide internal directories.