executor

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = "5m"
	ExecutorName   = "executor"

	HelmReleaseArg = "helmrelease"
	TimeoutArg     = "timeout"
)
View Source
const (
	HelmReleaseImage = "azureorkestra/executor"
	HelmReleaseTag   = "v0.4.2"
)
View Source
const (
	KeptnImage = "azureorkestra/keptn-executor"
	KeptnTag   = "v0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

Action defines the set of executor actions which can be performed on a helmrelease object

const (
	Install Action = "install"
	Delete  Action = "delete"
)

type Executor

type Executor interface {
	GetName() string
	Reverse() Executor
	GetTemplate() v1alpha13.Template
	GetTask(name string, dependencies []string, timeout, hrStr string, parameters *apiextensionsv1.JSON) (v1alpha13.DAGTask, error)
}

func ForwardFactory

func ForwardFactory(executorType v1alpha1.ExecutorType) Executor

type HelmReleaseForward

type HelmReleaseForward struct{}

func (HelmReleaseForward) GetName

func (exec HelmReleaseForward) GetName() string

func (HelmReleaseForward) GetTask

func (exec HelmReleaseForward) GetTask(name string, dependencies []string, timeout, hrStr string, taskParams *apiextensionsv1.JSON) (v1alpha13.DAGTask, error)

func (HelmReleaseForward) GetTemplate

func (exec HelmReleaseForward) GetTemplate() v1alpha13.Template

func (HelmReleaseForward) Reverse

func (exec HelmReleaseForward) Reverse() Executor

type HelmReleaseReverse

type HelmReleaseReverse struct{}

func (HelmReleaseReverse) GetName

func (exec HelmReleaseReverse) GetName() string

func (HelmReleaseReverse) GetTask

func (exec HelmReleaseReverse) GetTask(name string, dependencies []string, timeout, hrStr string, taskParams *apiextensionsv1.JSON) (v1alpha13.DAGTask, error)

func (HelmReleaseReverse) GetTemplate

func (exec HelmReleaseReverse) GetTemplate() v1alpha13.Template

func (HelmReleaseReverse) Reverse

func (exec HelmReleaseReverse) Reverse() Executor

type KeptnForward

type KeptnForward struct{}

func (KeptnForward) GetName

func (exec KeptnForward) GetName() string

func (KeptnForward) GetTask

func (exec KeptnForward) GetTask(name string, dependencies []string, timeout, hrStr string, taskParams *apiextensionsv1.JSON) (v1alpha13.DAGTask, error)

func (KeptnForward) GetTemplate

func (exec KeptnForward) GetTemplate() v1alpha13.Template

func (KeptnForward) Reverse

func (exec KeptnForward) Reverse() Executor

type KeptnParameters

type KeptnParameters struct {
	ConfigMapRef corev1.ObjectReference `json:"configMapRef"`
}

type KeptnReverse

type KeptnReverse struct{}

func (KeptnReverse) GetName

func (exec KeptnReverse) GetName() string

func (KeptnReverse) GetTask

func (exec KeptnReverse) GetTask(name string, dependencies []string, timeout, hrStr string, taskParams *apiextensionsv1.JSON) (v1alpha13.DAGTask, error)

func (KeptnReverse) GetTemplate

func (exec KeptnReverse) GetTemplate() v1alpha13.Template

func (KeptnReverse) Reverse

func (exec KeptnReverse) Reverse() Executor

Jump to

Keyboard shortcuts

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