Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultFileMatch specifies the default file shell pattern to identify Docker Compose files // Ref. https://pkg.go.dev/path/filepath#Match and https://go.dev/play/p/y2b7tt03r8Q to test DefaultFilePattern string = "*docker-compose*.y*ml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerCompose ¶
type DockerCompose struct {
// contains filtered or unexported fields
}
DockerCompose hold all information needed to generate compose file manifest.
func New ¶
func New(spec interface{}, rootDir, scmID string) (DockerCompose, error)
New return a new valid Helm object.
func (DockerCompose) DiscoverManifests ¶
func (d DockerCompose) DiscoverManifests() ([][]byte, error)
type MatchingRule ¶
type MatchingRule struct { // Arch specifies a list of docker image architecture Archs []string // Path specifies a Helm chart path pattern, the pattern requires to match all of name, not just a substring. Path string // Services specifies a list of docker compose services Services []string // Image specifies a list of docker image Images []string }
MatchingRule allows to specifies rules to identify manifest
type MatchingRules ¶
type MatchingRules []MatchingRule
type Spec ¶
type Spec struct { /* digest provides parameters to specify if the generated manifest should use a digest on top of the tag. */ Digest *bool `yaml:",omitempty"` // RootDir defines the root directory used to recursively search for Helm Chart RootDir string `yaml:",omitempty"` // Ignore allows to specify rule to ignore autodiscovery a specific Helm based on a rule Ignore MatchingRules `yaml:",omitempty"` // Only allows to specify rule to only autodiscover manifest for a specific Helm 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"` // FileMatch allows to override default docker-compose.yaml file matching. Default ["docker-compose.yaml","docker-compose.yml","docker-compose.*.yaml","docker-compose.*.yml"] FileMatch []string `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 is a struct fill from Updatecli manifest data and shouldn't be modified at runtime unless For Fields that requires it, we can use the struct DockerCompose Spec defines the parameters which can be provided to the Helm builder.
Click to show internal directories.
Click to hide internal directories.