ci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

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

Pipeline represents a CI/CD pipeline.

func New

func New(name string) *Pipeline

New creates a new pipeline.

func (*Pipeline) AddStage

func (p *Pipeline) AddStage(stage *Stage)

AddStage adds a stage to the pipeline.

func (*Pipeline) Run

func (p *Pipeline) Run(ctx context.Context) error

Run executes the pipeline.

type Stage

type Stage struct {
	Name     string
	Commands []string
	Env      map[string]string
	Timeout  time.Duration
}

Stage represents a pipeline stage.

func BuildStage

func BuildStage(commands ...string) *Stage

BuildStage creates a build stage.

func DeployStage

func DeployStage(commands ...string) *Stage

DeployStage creates a deploy stage.

func LintStage

func LintStage(commands ...string) *Stage

LintStage creates a lint stage.

func SecurityStage

func SecurityStage(commands ...string) *Stage

SecurityStage creates a security scan stage.

func TestStage

func TestStage(commands ...string) *Stage

TestStage creates a test stage.

Jump to

Keyboard shortcuts

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