Documentation
¶
Index ¶
- Constants
- func ReleaseType(version string) (string, error)
- type Jenkins
- func (j Jenkins) Changelog(from, to string) *result.Changelogs
- func (j Jenkins) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (j *Jenkins) ReportConfig() interface{}
- func (j *Jenkins) Source(workingDir string, resultSource *result.Source) error
- func (j Jenkins) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
- type Spec
Constants ¶
View Source
const ( // STABLE represents a stable release type STABLE string = "stable" // WEEKLY represents a weekly release type WEEKLY string = "weekly" // WRONG represents a bad release name WRONG string = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func ReleaseType ¶
ReleaseType return the release type of a version
Types ¶
type Jenkins ¶
type Jenkins struct {
// contains filtered or unexported fields
}
Jenkins defines a resource of kind "githubrelease"
func (Jenkins) Changelog ¶
func (j Jenkins) Changelog(from, to string) *result.Changelogs
Changelog returns the link to the found Jenkins version's changelog
func (Jenkins) Condition ¶
func (j Jenkins) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
Condition checks that a Jenkins version exists and that the version match a valid release type
func (*Jenkins) ReportConfig ¶ added in v0.99.0
func (j *Jenkins) ReportConfig() interface{}
ReportConfig returns a new configuration with only the necessary fields to identify the resource without any sensitive information and context specific data.
type Spec ¶
type Spec struct {
// [s][c] Defines the release name. It accepts "stable" or "weekly"
Release string `yaml:",omitempty"`
// [s][c] Defines a specific release version (condition only)
Version string `yaml:",omitempty"`
}
Spec defines a specification for a "jenkins" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.