pipelines

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextTypeSet     = "set"
	ContextTypeDefault = "default"
	GitlabURL          = "pipelines_gitlab"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Path, FullName, Name, Team, GitlabLink string

	Jobs map[string]JobDefinition

	Meta MetaDefinition

	Reporting ReportingDefinition
}

*

  • Repository pipeline definition (from YAML file).

type JobContextDefinition

type JobContextDefinition struct {
	Name, Type string
}

type JobDefinition

type JobDefinition struct {
	Name     string
	Stages   map[string]StageDefinition
	Contexts map[string]JobContextDefinition
}

type MetaDefinition

type MetaDefinition struct {
	Team   string
	Owners []MetaOwnerDefinition
}

type MetaOwnerDefinition

type MetaOwnerDefinition struct {
	Name, Email, Role string
}

type ReportingDefinition

type ReportingDefinition struct {
	Enabled bool `default:true`
}

type Repository

type Repository struct {
	URL, Path string
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(settings *cli.EnvSettings) *Repository

func (*Repository) FindDefinitions

func (s *Repository) FindDefinitions(filter utils.Filter) ([]Definition, error)

*

  • Find pipeline definitions, from S3 service.

func (*Repository) GetStorageStatus

func (s *Repository) GetStorageStatus() string

type RepositoryGit

type RepositoryGit struct {
	URL string
	// contains filtered or unexported fields
}

type RepositoryS3

type RepositoryS3 struct {
	// contains filtered or unexported fields
}

func (*RepositoryS3) GetStorageStatus

func (s *RepositoryS3) GetStorageStatus() string

type StageDefinition

type StageDefinition struct {
	Name, Stage, Enabled, Kind string
}

func (StageDefinition) IsEnabled

func (stage StageDefinition) IsEnabled() bool

*

  • Is stage enabled

func (StageDefinition) IsOutputStage

func (stage StageDefinition) IsOutputStage() bool

*

  • Is output stage

Jump to

Keyboard shortcuts

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