domain

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Concurrency

type Concurrency struct {
	Group            string `yaml:"group"`
	CancelInProgress bool   `yaml:"cancel-in-progress"`
}

type Container

type Container struct {
	Image string            `yaml:"image"`
	Env   map[string]string `yaml:"env,omitempty"`
}

type Job

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

func NewJob added in v0.10.6

func NewJob(opts JobOptions) (Job, error)

func (Job) Concurrency

func (j Job) Concurrency() *Concurrency

func (Job) Container

func (j Job) Container() *Container

func (Job) Env

func (j Job) Env() map[string]string

func (Job) Environment

func (j Job) Environment() string

func (Job) HasNeed added in v0.10.6

func (j Job) HasNeed(name string) bool

func (Job) If

func (j Job) If() string

func (Job) MarshalYAML added in v0.10.6

func (j Job) MarshalYAML() (any, error)

func (Job) Name

func (j Job) Name() string

func (Job) Needs

func (j Job) Needs() []string

func (Job) RunsOn

func (j Job) RunsOn() string

func (Job) Steps

func (j Job) Steps() []Step

type JobOptions added in v0.10.6

type JobOptions struct {
	Name        string
	RunsOn      string
	Container   *Container
	Needs       []string
	If          string
	Environment string
	Concurrency *Concurrency
	Env         map[string]string
	Steps       []Step
}

type PRTrigger

type PRTrigger struct {
	Branches []string `yaml:"branches,omitempty"`
}

type PushTrigger

type PushTrigger struct {
	Branches []string `yaml:"branches,omitempty"`
}

type Step

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

func NewStep added in v0.10.6

func NewStep(opts StepOptions) Step

func (Step) ContinueOnError added in v0.10.4

func (s Step) ContinueOnError() bool

func (Step) Env

func (s Step) Env() map[string]string

func (Step) If

func (s Step) If() string

func (Step) MarshalYAML added in v0.10.6

func (s Step) MarshalYAML() (any, error)

func (Step) Name

func (s Step) Name() string

func (Step) Run

func (s Step) Run() string

func (Step) Uses

func (s Step) Uses() string

func (Step) With

func (s Step) With() map[string]string

type StepOptions added in v0.10.6

type StepOptions struct {
	Name            string
	Uses            string
	With            map[string]string
	Run             string
	Env             map[string]string
	If              string
	ContinueOnError bool
}

type Workflow

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

func EmptyWorkflow added in v0.10.6

func EmptyWorkflow() *Workflow

func (*Workflow) Concurrency

func (w *Workflow) Concurrency() *Concurrency

func (*Workflow) Env

func (w *Workflow) Env() map[string]string

func (*Workflow) HasNeed added in v0.10.6

func (w *Workflow) HasNeed(jobName, dependency string) bool

func (*Workflow) Job added in v0.10.6

func (w *Workflow) Job(name string) (Job, bool)

func (*Workflow) JobCount added in v0.10.6

func (w *Workflow) JobCount() int

func (*Workflow) JobNames added in v0.10.6

func (w *Workflow) JobNames() []string

func (*Workflow) Name

func (w *Workflow) Name() string

func (*Workflow) On

func (w *Workflow) On() WorkflowTrigger

func (*Workflow) Permissions

func (w *Workflow) Permissions() map[string]string

func (*Workflow) ToYAML

func (w *Workflow) ToYAML() ([]byte, error)

type WorkflowBuilder added in v0.10.6

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

func NewWorkflowBuilder added in v0.10.6

func NewWorkflowBuilder(opts WorkflowOptions) *WorkflowBuilder

func (*WorkflowBuilder) AddJob added in v0.10.6

func (b *WorkflowBuilder) AddJob(name string, job Job) error

func (*WorkflowBuilder) Build added in v0.10.6

func (b *WorkflowBuilder) Build() (*Workflow, error)

type WorkflowOptions added in v0.10.6

type WorkflowOptions struct {
	Name        string
	On          WorkflowTrigger
	Permissions map[string]string
	Env         map[string]string
	Concurrency *Concurrency
}

type WorkflowTrigger

type WorkflowTrigger struct {
	Push             *PushTrigger `yaml:"push,omitempty"`
	PullRequest      *PRTrigger   `yaml:"pull_request,omitempty"`
	WorkflowDispatch any          `yaml:"workflow_dispatch,omitempty"`
}

Jump to

Keyboard shortcuts

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