task

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(op *trace.Operation, h interface{}, id string) (interface{}, error)

Bind enables launching of the process in the container

func Inspect

func Inspect(op *trace.Operation, h interface{}, id string) (*executor.SessionConfig, error)

Inspect the given task id and returns it's config

func Join

func Join(op *trace.Operation, h interface{}, task *executor.SessionConfig) (interface{}, error)

Join adds the task configuration to the containerVM config

func Remove

func Remove(op *trace.Operation, h interface{}, id string) (interface{}, error)

Remove the task configuration from the containerVM config

func State added in v1.4.1

State takes the given snapshot of a Task and determines the state of the Task. NOTE: this does not take into account the powerstate of the task owner at the moment.

callers should act on power state information before calling this.

func Unbind

func Unbind(op *trace.Operation, h interface{}, id string) (interface{}, error)

Unbind disables launching of the process in the container

func Wait

func Wait(op *trace.Operation, h interface{}, id string) error

Wait waits the task to start

Types

type TaskNotFoundError

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

Special Error types for a task inspect

func (TaskNotFoundError) Error

func (e TaskNotFoundError) Error() string

type TaskPowerStateError

type TaskPowerStateError struct {
	Err error
}

func (TaskPowerStateError) Error

func (t TaskPowerStateError) Error() string

Jump to

Keyboard shortcuts

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