task

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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) *Behavior

func (*Behavior) Parse

func (b *Behavior) Parse(node *node.Node) error

func (*Behavior) Proto

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

type CacheCommand

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

func NewCacheCommand

func NewCacheCommand(mergedEnv map[string]string) *CacheCommand

func (*CacheCommand) Parse

func (cache *CacheCommand) Parse(node *node.Node) error

func (*CacheCommand) Proto

func (cache *CacheCommand) Proto() *api.Command

type DockerPipe

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

func NewDockerPipe

func NewDockerPipe(env map[string]string) *DockerPipe

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) (bool, error)

func (*DockerPipe) ID

func (pipe *DockerPipe) ID() int64

func (*DockerPipe) Name

func (pipe *DockerPipe) Name() string

func (*DockerPipe) Parse

func (pipe *DockerPipe) Parse(node *node.Node) error

func (*DockerPipe) Proto

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

func (*DockerPipe) SetDependsOnIDs

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

func (*DockerPipe) SetID

func (pipe *DockerPipe) SetID(id int64)

func (*DockerPipe) SetName

func (pipe *DockerPipe) SetName(name string)

type ParseableTaskLike

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

	ID() int64
	SetID(id int64)

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

	Enabled(env map[string]string) (bool, error)

	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) error

type PipeStep

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

func NewPipeStep

func NewPipeStep(mergedEnv map[string]string) *PipeStep

func (*PipeStep) Parse

func (step *PipeStep) Parse(node *node.Node) error

type Task

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

func NewTask

func NewTask(env map[string]string, additionalInstances map[string]protoreflect.MessageDescriptor) *Task

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) (bool, error)

func (*Task) ID

func (task *Task) ID() int64

func (*Task) Name

func (task *Task) Name() string

func (*Task) Parse

func (task *Task) Parse(node *node.Node) error

func (*Task) Proto

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

func (*Task) SetDependsOnIDs

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

func (*Task) SetID

func (task *Task) SetID(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