Documentation ¶
Index ¶
- type GitBranch
- func (gt *GitBranch) Changelog() string
- func (gt *GitBranch) Condition(source string) (bool, error)
- func (gt *GitBranch) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (gt *GitBranch) Source(workingDir string) (string, error)
- func (gt *GitBranch) Target(source string, dryRun bool) (changed bool, err error)
- func (gt *GitBranch) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, 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) ConditionFromSCM ¶
ConditionFromSCM test if a branch exists from a git repository specific from SCM
func (*GitBranch) Target ¶
Target creates a tag if needed from a local git repository, without pushing the tag
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.