branch

package
v0.108.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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] Owner specifies repository owner
	Owner string `yaml:",omitempty" jsonschema:"required"`
	// [S][C] 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"`
	// [C] Branch specifies the branch name
	Branch string `yaml:",omitempty"`
}

Spec defines settings used to interact with Bitbucket Server release

func (Spec) Validate

func (s Spec) Validate() error

type Stash

type Stash struct {
	HeadBranch string
	// contains filtered or unexported fields
}

Stash contains information to interact with Stash api

func New

func New(spec interface{}) (*Stash, error)

New returns a new valid Bitbucket Server object.

func (*Stash) Changelog

func (g *Stash) Changelog(from, to string) *result.Changelogs

Changelog returns the changelog for this resource, or an empty string if not supported

func (*Stash) Condition

func (g *Stash) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)

func (*Stash) ReportConfig added in v0.99.0

func (s *Stash) ReportConfig() interface{}

ReportConfig returns a new configuration object with only the necessary fields to identify the resource without any sensitive information or context specific data.

func (*Stash) SearchBranches

func (g *Stash) SearchBranches() (tags []string, err error)

Retrieve branches from a remote Bitbucket Server repository

func (*Stash) Source

func (g *Stash) Source(workingDir string, resultSource *result.Source) error

func (Stash) Target

func (g Stash) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error

Target ensure that a specific release exist on Bitbucket Server, otherwise creates it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL