pipeline

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.3.1

type Logger interface {
	Debug(log string)
	Info(log string)
	Error(log string)
	Warn(log string)
}

type Meta added in v0.3.6

type Meta interface {
	Get(key string) (string, error)
	GetAll(key string) ([]string, error)
	Add(key, value string) error
	Set(key, value string) error
}

type PipeLine

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

func (*PipeLine) Run

func (p *PipeLine) Run(ctx *StageContext) error

type Runner added in v0.1.5

type Runner struct {
	Client     *client.Client
	Logger     Logger
	Secrets    SecretsStore
	WorkingDir string
	Branch     string
	Repo       string
	Cleanup    bool
	Meta       Meta
	// contains filtered or unexported fields
}

func NewRunner added in v0.1.5

func NewRunner(opts RunnerOptions) *Runner

func (*Runner) Pipeline added in v0.1.5

func (r *Runner) Pipeline(stages ...Stage) *PipeLine

func (*Runner) Run added in v0.1.5

func (r *Runner) Run() error

type RunnerOptions added in v0.3.1

type RunnerOptions struct {
	WorkingDir string
	Branch     string
	Repo       string
	Secrets    SecretsStore
	Logger     Logger
	Meta       Meta
	Cleanup    bool
}

type SecretsStore added in v0.3.5

type SecretsStore interface {
	Get(key string) (string, error)
}

type Stage

type Stage interface {
	Run(ctx *StageContext) error
}

type StageContext added in v0.1.8

type StageContext struct {
	Client          *client.Client
	Logger          Logger
	InternalNetwork string
	WorkingDir      string
	Branch          string
	Repo            string
	Secrets         SecretsStore
	Meta            Meta
}

Jump to

Keyboard shortcuts

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