blueprint

package
v0.0.0-...-dc3d092 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const JoinThreadsActionName = "join_threads"

JoinThreadsActionName const

Variables

Functions

func PreValidate

func PreValidate(sp *Blueprint) error

PreValidate func

func TestMinCliVersion

func TestMinCliVersion(bp *Blueprint) error

Types

type Action

type Action struct {
	// Filled internally.
	Parents          []*Action
	JoinThreadsPoint bool
	KnowParentIDs    map[string]bool
	SafeID           *string
	// GENERICS //
	Provider    string     `json:"provider" validate:"required"`
	ActionID    string     `json:"action_id" validate:"required"`
	ActionName  string     `json:"action" validate:"required"`
	FirstAction bool       `json:"first_action"`
	NextAction  NextAction `json:"next_action"`

	// Delegated parse.
	Input      json.RawMessage `json:"input" validate:"required"`
	Parameters json.RawMessage `json:"parameters" validate:"required"`

	// Actor out vars names.
	Output         *string `json:"output"`
	SaveRawResults bool    `json:"save_raw_results"`
	DebugNetwork   bool    `json:"debug_network"`
}

Action struct

type ActionValidatorFunc

type ActionValidatorFunc func(action *Action) error

ActionValidatorFunc type

type Blueprint

type Blueprint struct {
	ExecutionUUID *string
	Actions       []Action `json:"actions"`
	MinCLIVersion *string  `json:"min_cli_version"`
	Raw           *[]byte
}

Blueprint struct

func NewFromBackend

func NewFromBackend(uuid string) (*Blueprint, error)

NewFromBackend func

func NewFromBuilder

func NewFromBuilder(data []byte) (*Blueprint, error)

NewFromBuilder func

func NewFromBytes

func NewFromBytes(data []byte) (*Blueprint, error)

NewFromBytes func

func NewFromFile

func NewFromFile(path string) (*Blueprint, error)

NewFromFile func

type ConditionalNextActions

type ConditionalNextActions struct {
	True  []string `json:"true"`
	False []string `json:"false"`
}

type IRBGenConfig

type IRBGenConfig struct {
	AllowResultReturn bool
}

IRBGenConfig struct

type IRBlueprint

type IRBlueprint struct {
	BP            *Blueprint
	ExecutionUUID *string
	// [thread-action-id][thread-path]*Action
	JoinThreadPoints map[string]*Action
	Actions          map[string]*Action
	StartAction      *Action
}

IRBlueprint struct. Intermediate Representation Blueprint. Precompiler.

func GenerateIRB

func GenerateIRB(bp *Blueprint, irbConf *IRBGenConfig) (*IRBlueprint, error)

GenerateIRB func

func NewIRBFromAny

func NewIRBFromAny(any string) (*IRBlueprint, error)

type InternalParameters

type InternalParameters struct {
	Waiters []string `json:"_waiters"`
}

InternalParameters struct Config params defined to be used internally.

type NextAction

type NextAction struct {
	// Filled internally
	NextOk []*Action
	// Used internally. Is this a conditional next?
	ConditionalNext bool
	//
	NextOkTrue  []*Action
	NextOkFalse []*Action
	//
	NextKo []*Action
	// Parsed in precompiling.
	Ok json.RawMessage `json:"ok"`
	Ko json.RawMessage `json:"ko"`
}

NextAction struct

Jump to

Keyboard shortcuts

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