stepbuilder

package
v3.0.0-...-181f513 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataFromStruct

func MetadataFromStruct(forge metadata.ServerForge, repo *model.Repo, pipeline, prev *model.Pipeline, workflow *model.Workflow, sysURL string) metadata.Metadata

MetadataFromStruct return the metadata from a pipeline will run with.

func SanitizePath

func SanitizePath(path string) string

Types

type Item

type Item struct {
	Workflow  *model.Workflow
	Labels    map[string]string
	DependsOn []string
	RunsOn    []string
	Config    *backend_types.Config
}

type StepBuilder

type StepBuilder struct {
	Repo          *model.Repo
	Curr          *model.Pipeline
	Prev          *model.Pipeline
	Netrc         *model.Netrc
	Secs          []*model.Secret
	Regs          []*model.Registry
	Host          string
	Yamls         []*forge_types.FileMeta
	Envs          map[string]string
	Forge         metadata.ServerForge
	DefaultLabels map[string]string
	ProxyOpts     compiler.ProxyOptions
}

StepBuilder Takes the hook data and the yaml and returns in internal data model.

func (*StepBuilder) Build

func (b *StepBuilder) Build() (items []*Item, errorsAndWarnings error)

Jump to

Keyboard shortcuts

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