sandbox

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	Name   string  `yaml:"name,omitempty"`
	Inputs []Input `yaml:"inputs,omitempty"`
	// i.e. symbol table
	Tasks  []Flow            `yaml:"tasks,omitempty"`
	Script string            `yaml:"script,omitempty"`
	Env    map[string]string `yaml:"env,omitempty"`
}

func (Flow) AsRoot

func (f Flow) AsRoot() *ScopedFlow

func (Flow) BuildStackUntil

func (f Flow) BuildStackUntil(components []string) (*Stack, error)

func (Flow) FindExprAtPath

func (f Flow) FindExprAtPath(path string) (*ScopedFlow, error)

func (Flow) FindFlowByPathComponents

func (f Flow) FindFlowByPathComponents(components []string) (*ScopedFlow, error)

func (Flow) GetName

func (f Flow) GetName() string

type FlowRun

type FlowRun struct {
	Target Flow
	Params FlowRunParams
}

type FlowRunParams

type FlowRunParams struct {
	Caller *Flow
}

type Input

type Input struct {
	Name string `yaml:"name,omitempty"`
}

type Resolver

type Resolver interface {
	GetName() string
	FindExprAtPath(path string) (*ScopedFlow, error)
}

type Scope

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

func NewScope

func NewScope(tasksInScope []*ScopedFlow) *Scope

func (Scope) FindFlowAtPath

func (s Scope) FindFlowAtPath(path string) (*ScopedFlow, error)

func (*Scope) String

func (s *Scope) String() string

type ScopedFlow

type ScopedFlow struct {
	Stack *Stack
}

func NewScopedFlow

func NewScopedFlow(stack *Stack) *ScopedFlow

func (ScopedFlow) Current

func (e ScopedFlow) Current() *Flow

func (ScopedFlow) FindFlowByPathComponents

func (e ScopedFlow) FindFlowByPathComponents(components []string) (*ScopedFlow, error)

func (ScopedFlow) GetName

func (e ScopedFlow) GetName() string

func (ScopedFlow) Path

func (e ScopedFlow) Path() string

func (ScopedFlow) Scope

func (e ScopedFlow) Scope() *Scope

func (ScopedFlow) ScopeInString

func (e ScopedFlow) ScopeInString() string

func (ScopedFlow) String

func (e ScopedFlow) String() string

type Stack

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

func NewStackFromTasks

func NewStackFromTasks(f ...*Flow) *Stack

func (*Stack) Concat

func (s *Stack) Concat(other *Stack) *Stack

func (*Stack) FromBottom

func (s *Stack) FromBottom() []*Flow

func (*Stack) Pop

func (s *Stack) Pop() (*Stack, *Flow)

func (*Stack) Push

func (s *Stack) Push(flow *Flow) *Stack

func (*Stack) PushMulti

func (s *Stack) PushMulti(tasks []*Flow) *Stack

func (*Stack) Size

func (s *Stack) Size() int

func (*Stack) Top

func (s *Stack) Top() *Flow

type StepRunContext

type StepRunContext struct {
	FlowRun FlowRun
}

type StepRunParams

type StepRunParams struct {
	Context StepRunContext
}

Jump to

Keyboard shortcuts

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