workflow

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(fs afero.Fs) ([]string, error)

func Read

func Read(fs afero.Fs, p string, wf *Workflow) error

func ReadAction added in v0.2.8

func ReadAction(fs afero.Fs, p string, action *Action) error

Types

type Action added in v0.2.8

type Action struct {
	Runs *Runs
}

type Container

type Container struct {
	Image string
}

func (*Container) UnmarshalYAML added in v0.2.4

func (c *Container) UnmarshalYAML(unmarshal func(interface{}) error) error

type Job

type Job struct {
	Permissions *Permissions
	Env         map[string]string
	Steps       []*Step
	Secrets     *JobSecrets
	Container   *Container
	Uses        string
}

type JobSecrets

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

func (*JobSecrets) Inherit

func (js *JobSecrets) Inherit() bool

func (*JobSecrets) Secrets

func (js *JobSecrets) Secrets() map[string]string

func (*JobSecrets) UnmarshalYAML

func (js *JobSecrets) UnmarshalYAML(unmarshal func(interface{}) error) error

type Permissions

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

func NewPermissions added in v0.2.8

func NewPermissions(readAll, writeAll bool, m map[string]string) *Permissions

func (*Permissions) IsNil

func (ps *Permissions) IsNil() bool

func (*Permissions) Permissions

func (ps *Permissions) Permissions() map[string]string

func (*Permissions) ReadAll

func (ps *Permissions) ReadAll() bool

func (*Permissions) UnmarshalYAML

func (ps *Permissions) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Permissions) WriteAll

func (ps *Permissions) WriteAll() bool

type Runs added in v0.2.8

type Runs struct {
	Image string
	Steps []*Step
}

type Step

type Step struct {
	Uses  string
	ID    string
	Name  string
	Run   string
	Shell string
	With  map[string]string
}

type Workflow

type Workflow struct {
	FilePath    string `yaml:"-"`
	Jobs        map[string]*Job
	Env         map[string]string
	Permissions *Permissions
}

Jump to

Keyboard shortcuts

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