task

package
v0.102.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedSuffix = errors.New("unsupported time unit suffix")

Functions

func AttachBaseTaskFields added in v0.20.0

func AttachBaseTaskFields(
	parser *parseable.DefaultParser,
	task *api.Task,
	env map[string]string,
	parserKit *parserkit.ParserKit,
	additionalTaskProperties []*descriptor.FieldDescriptorProto,
)

func AttachBaseTaskInstructions added in v0.29.0

func AttachBaseTaskInstructions(
	parser *parseable.DefaultParser,
	task *api.Task,
	env map[string]string,
	parserKit *parserkit.ParserKit,
)

func AttachEnvironmentFields added in v0.41.0

func AttachEnvironmentFields(
	parser *parseable.DefaultParser,
	task *api.Task,
)

func DefaultTaskProperties added in v0.9.0

func DefaultTaskProperties() map[string]string

func ParseSeconds added in v0.8.0

func ParseSeconds(s string) (uint32, error)

Types

type Behavior

type Behavior struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewBehavior

func NewBehavior(
	mergedEnv map[string]string,
	parserKit *parserkit.ParserKit,
	previousCommands []*api.Command,
) *Behavior

func (*Behavior) Parse

func (b *Behavior) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*Behavior) Proto

func (b *Behavior) Proto() []*api.Command

func (*Behavior) Schema added in v0.18.0

func (b *Behavior) Schema() *jsschema.Schema

type DockerBuilder added in v0.20.0

type DockerBuilder struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewDockerBuilder added in v0.20.0

func NewDockerBuilder(
	env map[string]string,
	parserKit *parserkit.ParserKit,
	additionalTaskProperties []*descriptor.FieldDescriptorProto,
	line int,
	column int,
) *DockerBuilder

func (*DockerBuilder) Alias added in v0.27.1

func (dbuilder *DockerBuilder) Alias() string

func (*DockerBuilder) Column added in v0.83.0

func (dbuilder *DockerBuilder) Column() int

func (*DockerBuilder) DependsOnIDs added in v0.20.0

func (dbuilder *DockerBuilder) DependsOnIDs() []int64

func (*DockerBuilder) DependsOnNames added in v0.20.0

func (dbuilder *DockerBuilder) DependsOnNames() []string

func (*DockerBuilder) Enabled added in v0.20.0

func (dbuilder *DockerBuilder) Enabled(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)

func (*DockerBuilder) FallbackName added in v0.64.0

func (dbuilder *DockerBuilder) FallbackName() string

func (*DockerBuilder) ID added in v0.20.0

func (dbuilder *DockerBuilder) ID() int64

func (*DockerBuilder) Line added in v0.83.0

func (dbuilder *DockerBuilder) Line() int

func (*DockerBuilder) Name added in v0.20.0

func (dbuilder *DockerBuilder) Name() string

func (*DockerBuilder) OnlyIfExpression added in v0.83.0

func (dbuilder *DockerBuilder) OnlyIfExpression() string

func (*DockerBuilder) Parse added in v0.20.0

func (dbuilder *DockerBuilder) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*DockerBuilder) Proto added in v0.20.0

func (dbuilder *DockerBuilder) Proto() interface{}

func (*DockerBuilder) Schema added in v0.20.0

func (dbuilder *DockerBuilder) Schema() *jsschema.Schema

func (*DockerBuilder) SetDependsOnIDs added in v0.20.0

func (dbuilder *DockerBuilder) SetDependsOnIDs(ids []int64)

func (*DockerBuilder) SetFallbackName added in v0.64.0

func (dbuilder *DockerBuilder) SetFallbackName(name string)

func (*DockerBuilder) SetID added in v0.20.0

func (dbuilder *DockerBuilder) SetID(id int64)

func (*DockerBuilder) SetIndexWithinBuild added in v0.20.0

func (dbuilder *DockerBuilder) SetIndexWithinBuild(id int64)

func (*DockerBuilder) SetName added in v0.20.0

func (dbuilder *DockerBuilder) SetName(name string)

type DockerPipe

type DockerPipe struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewDockerPipe

func NewDockerPipe(
	env map[string]string,
	parserKit *parserkit.ParserKit,
	additionalTaskProperties []*descriptor.FieldDescriptorProto,
	line int,
	column int,
) *DockerPipe

func (*DockerPipe) Alias added in v0.27.1

func (pipe *DockerPipe) Alias() string

func (*DockerPipe) Column added in v0.83.0

func (pipe *DockerPipe) Column() int

func (*DockerPipe) DependsOnIDs

func (pipe *DockerPipe) DependsOnIDs() []int64

func (*DockerPipe) DependsOnNames

func (pipe *DockerPipe) DependsOnNames() []string

func (*DockerPipe) Enabled

func (pipe *DockerPipe) Enabled(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)

func (*DockerPipe) FallbackName added in v0.64.0

func (pipe *DockerPipe) FallbackName() string

func (*DockerPipe) ID

func (pipe *DockerPipe) ID() int64

func (*DockerPipe) Line added in v0.83.0

func (pipe *DockerPipe) Line() int

func (*DockerPipe) Name

func (pipe *DockerPipe) Name() string

func (*DockerPipe) OnlyIfExpression added in v0.83.0

func (pipe *DockerPipe) OnlyIfExpression() string

func (*DockerPipe) Parse

func (pipe *DockerPipe) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*DockerPipe) Proto

func (pipe *DockerPipe) Proto() interface{}

func (*DockerPipe) Schema added in v0.18.0

func (pipe *DockerPipe) Schema() *jsschema.Schema

func (*DockerPipe) SetDependsOnIDs

func (pipe *DockerPipe) SetDependsOnIDs(ids []int64)

func (*DockerPipe) SetFallbackName added in v0.64.0

func (pipe *DockerPipe) SetFallbackName(name string)

func (*DockerPipe) SetID

func (pipe *DockerPipe) SetID(id int64)

func (*DockerPipe) SetIndexWithinBuild added in v0.15.0

func (pipe *DockerPipe) SetIndexWithinBuild(id int64)

func (*DockerPipe) SetName

func (pipe *DockerPipe) SetName(name string)

type ParseableTaskLike

type ParseableTaskLike interface {
	Name() string
	SetName(name string)
	FallbackName() string
	SetFallbackName(name string)
	Alias() string
	DependsOnNames() []string

	ID() int64
	SetID(id int64)
	SetIndexWithinBuild(id int64)

	DependsOnIDs() []int64
	SetDependsOnIDs(ids []int64)

	OnlyIfExpression() string
	Enabled(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)

	Line() int
	Column() int

	parseable.Parseable
}

type PipeResources added in v0.9.0

type PipeResources struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewPipeResources added in v0.9.0

func NewPipeResources(mergedEnv map[string]string) *PipeResources

func (*PipeResources) Parse added in v0.9.0

func (res *PipeResources) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*PipeResources) Schema added in v0.18.0

func (res *PipeResources) Schema() *jsschema.Schema

type PipeStep

type PipeStep struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewPipeStep

func NewPipeStep(
	mergedEnv map[string]string,
	parserKit *parserkit.ParserKit,
	previousCommands []*api.Command,
) *PipeStep

func (*PipeStep) Parse

func (step *PipeStep) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*PipeStep) Schema added in v0.18.0

func (step *PipeStep) Schema() *jsschema.Schema

type Task

type Task struct {
	parseable.DefaultParser
	// contains filtered or unexported fields
}

func NewTask

func NewTask(
	env map[string]string,
	parserKit *parserkit.ParserKit,
	additionalInstances map[string]protoreflect.MessageDescriptor,
	additionalTaskProperties []*descriptor.FieldDescriptorProto,
	missingInstancesAllowed bool,
	line int,
	column int,
) *Task

func (*Task) Alias added in v0.27.1

func (task *Task) Alias() string

func (*Task) Column added in v0.83.0

func (task *Task) Column() int

func (*Task) DependsOnIDs

func (task *Task) DependsOnIDs() []int64

func (*Task) DependsOnNames

func (task *Task) DependsOnNames() []string

func (*Task) Enabled

func (task *Task) Enabled(env map[string]string, boolevator *boolevator.Boolevator) (bool, error)

func (*Task) FallbackName added in v0.64.0

func (task *Task) FallbackName() string

func (*Task) ID

func (task *Task) ID() int64

func (*Task) InstanceNode added in v0.65.0

func (task *Task) InstanceNode() *node.Node

func (*Task) Line added in v0.83.0

func (task *Task) Line() int

func (*Task) Name

func (task *Task) Name() string

func (*Task) OnlyIfExpression added in v0.83.0

func (task *Task) OnlyIfExpression() string

func (*Task) Parse

func (task *Task) Parse(node *node.Node, parserKit *parserkit.ParserKit) error

func (*Task) Proto

func (task *Task) Proto() interface{}

func (*Task) Schema added in v0.18.0

func (task *Task) Schema() *jsschema.Schema

func (*Task) SetDependsOnIDs

func (task *Task) SetDependsOnIDs(ids []int64)

func (*Task) SetFallbackName added in v0.64.0

func (task *Task) SetFallbackName(name string)

func (*Task) SetID

func (task *Task) SetID(id int64)

func (*Task) SetIndexWithinBuild added in v0.15.0

func (task *Task) SetIndexWithinBuild(id int64)

func (*Task) SetName

func (task *Task) SetName(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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