Documentation ¶
Index ¶
- type GitBranch
- func (gt *GitBranch) Changelog() string
- func (gt *GitBranch) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (gt *GitBranch) Source(workingDir string, resultSource *result.Source) error
- func (gt *GitBranch) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) (err error)
- func (gt *GitBranch) Validate() error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitBranch ¶
type GitBranch struct {
// contains filtered or unexported fields
}
GitBranch defines a resource of kind "gitbranch"
func New ¶
New returns a reference to a newly initialized GitBranch object from a Spec or an error if the provided Filespec triggers a validation error.
func (*GitBranch) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*GitBranch) Condition ¶
func (gt *GitBranch) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
Condition checks that a git branch exists
type Spec ¶
type Spec struct { // [s][c][t] Path contains the git repository path Path string `yaml:",omitempty"` // [s] VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. VersionFilter version.Filter `yaml:",omitempty"` // [c][t] Specify branch name Branch string `yaml:",omitempty"` }
Spec defines a specification for a "gitbranch" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.