cre

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRE

type CRE interface {
	// Type returns the container runtime executor type, by default docker
	// is used.
	Type() string

	runtime.RuntimeService

	runtime.ImageService
}

CRE is the interface corresponding to the container runtime executor.

type CRExecutor

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

CRExecutor is the type corresponding to the container runtime executor.

func NewCRExecutor

func NewCRExecutor(runtime, id, name string, spec *v1alpha1.PipelineSpecWithName) *CRExecutor

NewCRExecutor returns a new instance of the container runtime executor.

func (*CRExecutor) Configure

func (c *CRExecutor) Configure() error

Configure configures the container runtime executor

func (*CRExecutor) RunTask

func (c *CRExecutor) RunTask(name string, task *v1alpha1.TaskSpec) error

RunTask runs the task defined by the spec in the container.

func (*CRExecutor) SaveStatusToStore

func (c *CRExecutor) SaveStatusToStore() error

SaveStatusToStore saves the status in the store

func (*CRExecutor) Shutdown

func (c *CRExecutor) Shutdown() error

Shutdown shuts down the container runtime executor.

func (*CRExecutor) WithStatus

func (c *CRExecutor) WithStatus(status *v1alpha1.PipelineRunStatus)

WithStatus sets the status in the executor

func (*CRExecutor) WithoutStore

func (c *CRExecutor) WithoutStore()

WithoutStore returns the CRExecutor disabling useStore option

type StepExecError

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

StepExecError is the error in the step of the task, it is returned when the step failed exitting in a code other than 0

func (*StepExecError) Error

func (s *StepExecError) Error() string

Directories

Path Synopsis
Package runtime is a derived form of the container runtime api provided by kubernetes removing all the parts related to the Pod sandboxes.
Package runtime is a derived form of the container runtime api provided by kubernetes removing all the parts related to the Pod sandboxes.

Jump to

Keyboard shortcuts

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