Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact interface { VersioningScheme() string GetVersion() (string, error) SetVersion(string) error }
Artifact defines the versioning operations for various build tools
type Docker ¶ added in v1.23.0
type Docker struct {
// contains filtered or unexported fields
}
Docker defines an artifact based on a Dockerfile
func (*Docker) GetVersion ¶ added in v1.23.0
GetVersion returns the current version of the artifact
func (*Docker) SetVersion ¶ added in v1.23.0
SetVersion updates the version of the artifact
func (*Docker) VersioningScheme ¶ added in v1.23.0
VersioningScheme returns the relevant versioning scheme
type INIfile ¶ added in v1.23.0
type INIfile struct {
// contains filtered or unexported fields
}
INIfile defines an artifact using a json file for versioning
func (*INIfile) GetVersion ¶ added in v1.23.0
GetVersion returns the current version of the artifact with a ini-file-based build descriptor
func (*INIfile) SetVersion ¶ added in v1.23.0
SetVersion updates the version of the artifact with a ini-file-based build descriptor
func (*INIfile) VersioningScheme ¶ added in v1.23.0
VersioningScheme returns the relevant versioning scheme
type JSONfile ¶ added in v1.23.0
type JSONfile struct {
// contains filtered or unexported fields
}
JSONfile defines an artifact using a json file for versioning
func (*JSONfile) GetVersion ¶ added in v1.23.0
GetVersion returns the current version of the artifact with a JSON-based build descriptor
func (*JSONfile) SetVersion ¶ added in v1.23.0
SetVersion updates the version of the artifact with a JSON-based build descriptor
func (*JSONfile) VersioningScheme ¶ added in v1.23.0
VersioningScheme returns the relevant versioning scheme
type Maven ¶
type Maven struct {
// contains filtered or unexported fields
}
Maven defines a maven artifact used for versioning
func (*Maven) GetVersion ¶
GetVersion returns the current version of the artifact
func (*Maven) SetVersion ¶
SetVersion updates the version of the artifact
func (*Maven) VersioningScheme ¶
VersioningScheme returns the relevant versioning scheme
type Options ¶
type Options struct { ProjectSettingsFile string GlobalSettingsFile string M2Path string VersionSource string VersionSection string VersionField string VersioningScheme string }
Options define build tool specific settings in order to properly retrieve e.g. the version of an artifact
type Versionfile ¶ added in v1.23.0
type Versionfile struct {
// contains filtered or unexported fields
}
Versionfile defines an artifact containing the version in a file, e.g. VERSION
func (*Versionfile) GetVersion ¶ added in v1.23.0
func (v *Versionfile) GetVersion() (string, error)
GetVersion returns the current version of the artifact
func (*Versionfile) SetVersion ¶ added in v1.23.0
func (v *Versionfile) SetVersion(version string) error
SetVersion updates the version of the artifact
func (*Versionfile) VersioningScheme ¶ added in v1.23.0
func (v *Versionfile) VersioningScheme() string
VersioningScheme returns the relevant versioning scheme
type YAMLfile ¶ added in v1.23.0
type YAMLfile struct {
// contains filtered or unexported fields
}
YAMLfile defines an artifact using a yaml file for versioning
func (*YAMLfile) GetVersion ¶ added in v1.23.0
GetVersion returns the current version of the artifact with a YAML-based build descriptor
func (*YAMLfile) SetVersion ¶ added in v1.23.0
SetVersion updates the version of the artifact with a YAML-based build descriptor
func (*YAMLfile) VersioningScheme ¶ added in v1.23.0
VersioningScheme returns the relevant versioning scheme