callable

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	Func     string
	Return   string
	VarStack map[string]string
	Traits   task.Traits
	// contains filtered or unexported fields
}

func NewCall

func NewCall(funcCall string, returnVar string, varStack map[string]string, parent ParentRole) (call *Call)

func (*Call) Await added in v0.20.81

func (c *Call) Await() error

func (*Call) Call

func (c *Call) Call() error

func (*Call) GetName

func (c *Call) GetName() string

func (*Call) GetParentRole

func (c *Call) GetParentRole() interface{}

func (*Call) GetParentRolePath

func (c *Call) GetParentRolePath() string

func (*Call) GetTraits

func (c *Call) GetTraits() task.Traits

func (*Call) Start added in v0.20.81

func (c *Call) Start()

type Calls

type Calls []*Call

func (Calls) AwaitAll added in v0.20.81

func (s Calls) AwaitAll() map[*Call]error

func (Calls) CallAll

func (s Calls) CallAll() map[*Call]error

func (Calls) StartAll added in v0.20.81

func (s Calls) StartAll()

type Hook

type Hook interface {
	GetParentRole() interface{}
	GetParentRolePath() string
	GetName() string
	GetTraits() task.Traits
}

type Hooks

type Hooks []Hook

func (Hooks) FilterCalls

func (s Hooks) FilterCalls() (calls Calls)

func (Hooks) FilterTasks

func (s Hooks) FilterTasks() (tasks task.Tasks)

type ParentRole

type ParentRole interface {
	GetPath() string
	GetTaskTraits() task.Traits
	GetEnvironmentId() uid.ID
	ConsolidatedVarStack() (varStack map[string]string, err error)
	SendEvent(event.Event)
	SetRuntimeVar(key string, value string)
	GetCurrentRunNumber() uint32
}

Jump to

Keyboard shortcuts

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