Documentation
¶
Index ¶
- type GitTag
- func (gt *GitTag) Condition(source string) (bool, error)
- func (gt *GitTag) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (gt *GitTag) Source(workingDir string) (string, error)
- func (gt *GitTag) Target(source string, dryRun bool) (changed bool, err error)
- func (gt *GitTag) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, err 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) ConditionFromSCM ¶
ConditionFromSCM test if a tag exists from a git repository specific from SCM
func (*GitTag) Target ¶
Target creates a tag if needed from a local git repository, without pushing the tag
type Spec ¶
type Spec struct {
Path string // Path contains the git repository path
VersionFilter version.Filter // VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
Message string // Message associated to the git tag
}
Spec defines a specification for a "gittag" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.