runctl

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller processes PipelineRun resources

func NewController

func NewController(factory k8s.ClientFactory, metrics metrics.Metrics) *Controller

NewController creates new Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run runs the controller

type Run

type Run interface {
	GetStartTime() *metav1.Time
	IsFinished() (bool, steward.Result)
	GetSucceededCondition() *knativeapis.Condition
	GetContainerInfo() *corev1.ContainerState
}

Run represents a pipeline run

func NewRun

func NewRun(tektonTaskRun *tekton.TaskRun) Run

NewRun returns new Run

type RunManager

type RunManager interface {
	Start(pipelineRun k8s.PipelineRun) error
	GetRun(pipelineRun k8s.PipelineRun) (Run, error)
	Cleanup(pipelineRun k8s.PipelineRun) error
}

RunManager manages runs

func NewRunManager

func NewRunManager(factory k8s.ClientFactory, secretProvider secrets.SecretProvider, namespaceManager k8s.NamespaceManager) RunManager

NewRunManager creates a new RunManager.

Jump to

Keyboard shortcuts

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