branch

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gitlab

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

Gitlab contains information to interact with GitLab api

func New

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

New returns a new valid GitLab object.

func (*Gitlab) Changelog

func (g *Gitlab) Changelog() string

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

func (*Gitlab) Condition

func (g *Gitlab) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error

func (*Gitlab) SearchBranches

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

Retrieve GitLab branches from a remote GitLab repository

func (*Gitlab) Source

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

func (Gitlab) Target

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

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

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 GitLab release

func (Spec) Validate

func (s Spec) Validate() error

Jump to

Keyboard shortcuts

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