Documentation
¶
Index ¶
- type Spec
- type Stash
- func (g *Stash) Changelog() string
- func (g *Stash) Condition(source string) (bool, error)
- func (g *Stash) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (g *Stash) SearchReleases() ([]string, error)
- func (g *Stash) Source(workingDir string) (string, error)
- func (g *Stash) Target(source string, dryRun bool) (bool, error)
- func (g Stash) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct {
client.Spec `yaml:",inline,omitempty"`
// [S][C][T] owner specifies repository owner
Owner string `yaml:",omitempty" jsonschema:"required"`
// [S][C][T] repository specifies the name of a repository for a specific owner
Repository string `yaml:",omitempty" jsonschema:"required"`
// [S] versionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
VersionFilter version.Filter `yaml:",omitempty"`
// [T] title defines the Bitbucket release title.
Title string `yaml:",omitempty"`
// [C][T] tag defines the Bitbucket release tag.
Tag string `yaml:",omitempty"`
// [T] commitish defines the commit-ish such as `main`
Commitish string `yaml:",omitempty"`
// [T] description defines if the new release description
Description string `yaml:",omitempty"`
// [T] draft defines if the release is a draft release
Draft bool `yaml:",omitempty"`
// [T] prerelease defines if the release is a pre-release release
Prerelease bool `yaml:",omitempty"`
}
Spec defines settings used to interact with Bitbucket release
type Stash ¶
type Stash struct {
// contains filtered or unexported fields
}
Stash contains information to interact with Stash api
func (*Stash) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*Stash) ConditionFromSCM ¶
func (*Stash) SearchReleases ¶
Retrieve git tags from a remote bitbucket repository
Click to show internal directories.
Click to hide internal directories.