Documentation ¶
Index ¶
- type CRE
- type CRExecutor
- func (c *CRExecutor) Configure() error
- func (c *CRExecutor) RunTask(name string, task *v1alpha1.TaskSpec) error
- func (c *CRExecutor) SaveStatusToStore() error
- func (c *CRExecutor) Shutdown() error
- func (c *CRExecutor) WithStatus(status *v1alpha1.PipelineRunStatus)
- func (c *CRExecutor) WithoutStore()
- type StepExecError
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. |