maven

package
v0.105.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveProfiles added in v0.90.0

type ActiveProfiles struct {
	ActiveProfile []string `xml:"activeProfile"`
}

type EnabledFlag added in v0.90.0

type EnabledFlag struct {
	Enabled string `xml:"enabled"`
}

type MatchingRule

type MatchingRule struct {
	// Path specifies a Helm chart path pattern, the pattern requires to match all of name, not just a substring.
	Path string `yaml:",omitempty"`
	// GroupIDs specifies the list of Maven GroupIDs to check
	GroupIDs []string `yaml:",omitempty"`
	// ArtifactIDs specifies the list of Maven ArtifactIDs to check
	ArtifactIDs map[string]string `yaml:",omitempty"`
}

MatchingRule allows to specifies rules to identify manifest

type MatchingRules

type MatchingRules []MatchingRule

type Maven

type Maven struct {
	// contains filtered or unexported fields
}

Maven hold all information needed to generate helm manifest.

func New

func New(spec interface{}, rootDir, scmID, actionID string) (Maven, error)

New return a new valid Helm object.

func (Maven) DiscoverManifests

func (m Maven) DiscoverManifests() ([][]byte, error)

type Mirror added in v0.90.0

type Mirror struct {
	ID       string `xml:"id"`
	Name     string `xml:"name"`
	URL      string `xml:"url"`
	MirrorOf string `xml:"mirrorOf"`
}

type Profile added in v0.90.0

type Profile struct {
	ID           string       `xml:"id"`
	Repositories []Repository `xml:"repositories>repository"`
}

type Repository added in v0.90.0

type Repository struct {
	ID        string      `xml:"id"`
	URL       string      `xml:"url"`
	Releases  EnabledFlag `xml:"releases"`
	Snapshots EnabledFlag `xml:"snapshots"`
}

type Server added in v0.90.0

type Server struct {
	ID       string `xml:"id"`
	Username string `xml:"username"`
	Password string `xml:"password"`
}

type Settings added in v0.90.0

type Settings struct {
	XMLName        xml.Name       `xml:"settings"`
	Mirrors        []Mirror       `xml:"mirrors>mirror"`
	Profiles       []Profile      `xml:"profiles>profile"`
	Servers        []Server       `xml:"servers>server"`
	ActiveProfiles ActiveProfiles `xml:"activeProfiles"`
}

type Spec

type Spec struct {
	// 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"`
	/*
		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 parameters which can be provided to the Helm builder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL