release

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 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 Gitlab

type Gitlab struct {
	// 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 Github 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) (bool, error)

func (*Gitlab) ConditionFromSCM

func (g *Gitlab) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

func (*Gitlab) SearchReleases

func (g *Gitlab) SearchReleases() ([]string, error)

Retrieve git tags from a remote Gitlab repository

func (*Gitlab) Source

func (g *Gitlab) Source(workingDir string) (string, error)

func (*Gitlab) Target

func (g *Gitlab) Target(source string, dryRun bool) (bool, error)

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

func (Gitlab) TargetFromSCM

func (g Gitlab) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)

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 Gitlab release title.
	Title string `yaml:",omitempty"`
	// [C][T] Tag defines the Gitlab release tag.
	Tag string `yaml:",omitempty"`
	// [T] Commitish defines the commit-ish such as `main`
	Commitish string `yaml:",omitempty"`
	// [T] Drescription defines if the new release description
	Drescription 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 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