job

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 29 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultUnixSocket = "/var/run/docker.sock"

DefaultUnixSocket to connect to the docker API

View Source
const SIGWINCH = syscall.SIGWINCH

SIGWINCH alias

Variables

This section is empty.

Functions

func GetTaskConfig

func GetTaskConfig(name, action string, conf *config.JobConfig) (types.TaskConfig, error)

GetTaskConfig returns a new task for the action

Types

type RemoveTask

type RemoveTask struct {
	types.NoStop
	// contains filtered or unexported fields
}

RemoveTask is a task which removes the container used by the run task and the artifact created by the run task.

func (*RemoveTask) Name

func (t *RemoveTask) Name() task.Name

Name returns the name of the task

func (*RemoveTask) Repr

func (t *RemoveTask) Repr() string

Repr formats the task for logging

func (*RemoveTask) Run

func (t *RemoveTask) Run(ctx *context.ExecuteContext, _ bool) (bool, error)

Run creates the host path if it doesn't already exist

type Task

type Task struct {
	types.NoStop
	// contains filtered or unexported fields
}

Task is a task which runs a command in a container to produce a file or set of files.

func (*Task) Name

func (t *Task) Name() task.Name

Name returns the name of the task

func (*Task) Repr

func (t *Task) Repr() string

Repr formats the task for logging

func (*Task) Run

func (t *Task) Run(ctx *context.ExecuteContext, depsModified bool) (bool, error)

Run the job command in a container

Jump to

Keyboard shortcuts

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