Documentation
¶
Index ¶
- type GitHubRelease
- func (gr GitHubRelease) Changelog() string
- func (ghr GitHubRelease) Condition(source string) (bool, error)
- func (ghr GitHubRelease) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (gr *GitHubRelease) Source(workingDir string) (value string, err error)
- func (ghr GitHubRelease) Target(source string, dryRun bool) (bool, error)
- func (ghr GitHubRelease) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
// contains filtered or unexported fields
}
GitHubRelease defines a resource of kind "githubrelease"
func New ¶
func New(spec interface{}) (*GitHubRelease, error)
New returns a new valid GitHubRelease object.
func (GitHubRelease) Changelog ¶
func (gr GitHubRelease) Changelog() string
Changelog returns the content (body) of the Github Release
func (GitHubRelease) ConditionFromSCM ¶
func (ghr GitHubRelease) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
func (*GitHubRelease) Source ¶
func (gr *GitHubRelease) Source(workingDir string) (value string, err error)
Source retrieves a specific version tag from Github Releases.
func (GitHubRelease) Target ¶
func (ghr GitHubRelease) Target(source string, dryRun bool) (bool, error)
func (GitHubRelease) TargetFromSCM ¶
func (ghr GitHubRelease) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
type Spec ¶ added in v0.22.3
type Spec struct { // Owner specifies repository owner Owner string `yaml:",omitempty" jsonschema:"required"` // Repository specifies the name of a repository for a specific owner Repository string `yaml:",omitempty" jsonschema:"required"` // Token specifies the credential used to authenticate with Token string `yaml:",omitempty" jsonschema:"required"` // URL specifies the default github url in case of GitHub enterprise URL string `yaml:",omitempty"` // Username specifies the username used to authenticate with Github API Username string `yaml:",omitempty" jsonschema:"required"` // VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. VersionFilter version.Filter `yaml:",omitempty"` }
Spec defines a specification for a "gittag" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.