task_metadata

package
v1.0.0-beta.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// a task to run a particular hook
	HookRun                  task.TaskType = "HookRun"
	EnableKubernetesBindings task.TaskType = "EnableKubernetesBindings"
	EnableScheduleBindings   task.TaskType = "EnableScheduleBindings"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingContextAccessor

type BindingContextAccessor interface {
	GetBindingContext() []BindingContext
}

type HookMetadata

type HookMetadata struct {
	HookName       string // hook name
	Binding        string // binding name
	Group          string
	BindingType    BindingType
	BindingContext []BindingContext
	AllowFailure   bool //Task considered as 'ok' if hook failed. False by default. Can be true for some schedule hooks.
}

func HookMetadataAccessor

func HookMetadataAccessor(t task.Task) (hookMeta HookMetadata)

func (*HookMetadata) AppendBindingContext

func (m *HookMetadata) AppendBindingContext(context BindingContext) *HookMetadata

func (HookMetadata) GetAllowFailure

func (m HookMetadata) GetAllowFailure() bool

func (HookMetadata) GetBinding

func (m HookMetadata) GetBinding() BindingType

func (HookMetadata) GetBindingContext

func (m HookMetadata) GetBindingContext() []BindingContext

func (HookMetadata) GetDescription

func (m HookMetadata) GetDescription() string

func (HookMetadata) GetHookName

func (m HookMetadata) GetHookName() string

func (*HookMetadata) WithAllowFailure

func (m *HookMetadata) WithAllowFailure(allowFailure bool) *HookMetadata

func (*HookMetadata) WithBinding

func (m *HookMetadata) WithBinding(binding BindingType) *HookMetadata

func (*HookMetadata) WithBindingContext

func (m *HookMetadata) WithBindingContext(context []BindingContext) *HookMetadata

func (*HookMetadata) WithHookName

func (m *HookMetadata) WithHookName(name string) *HookMetadata

type HookNameAccessor

type HookNameAccessor interface {
	GetHookName() string
}

Jump to

Keyboard shortcuts

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