Documentation ¶
Index ¶
- type GitTag
- func (gt *GitTag) Changelog() string
- func (gt *GitTag) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (gt *GitTag) Source(workingDir string, resultSource *result.Source) error
- func (gt *GitTag) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
- func (gt *GitTag) Validate() error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitTag ¶
type GitTag struct {
// contains filtered or unexported fields
}
GitTag defines a resource of kind "gittag"
func New ¶
New returns a reference to a newly initialized GitTag object from a Spec or an error if the provided Filespec triggers a validation error.
func (*GitTag) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*GitTag) Condition ¶
func (gt *GitTag) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
Condition checks that a git tag exists
type Spec ¶
type Spec struct { // Path contains the git repository path Path string `yaml:",omitempty"` // VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. VersionFilter version.Filter `yaml:",omitempty"` // Message associated to the git tag Message string `yaml:",omitempty"` // Key of the tag object to retrieve, default is tag "name" filters are always against tag name, this only controls the output; Current options are 'name' and 'hash'. Key string `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.