blueprint

package
v0.5.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DebugActionName = "debug"
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 ActionValidatorFunc

type ActionValidatorFunc func(action *base.Action) error

ActionValidatorFunc type

type Blueprint

type Blueprint struct {
	ExecutionUUID   *string
	Actions         []base.Action `json:"actions"`
	MinCLIVersion   *string       `json:"min_cli_version"`
	Raw             *[]byte
	BuilderErrors   int `json:"n_errors"`
	BuilderWarnings int `json:"n_warnings"`
}

Blueprint struct

func NewFromBackend

func NewFromBackend(bpUrl *BlueprintURL) (*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(bpUrl *BlueprintURL) (*Blueprint, error)

NewFromFile func

func NewFromMarket

func NewFromMarket(bpUrl *BlueprintURL) (*Blueprint, error)

type BlueprintURL

type BlueprintURL struct {
	Scheme           string
	OrganizationSlug string
	CollectionSlug   string
	BlueprintSlug    string
	Version          string
	FilePath         string
	UrlPath          string
}

func ParsePath

func ParsePath(path string) (*BlueprintURL, error)

func ParseURL

func ParseURL(path string) (*BlueprintURL, error)

type ConditionalNextActions

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

type IRBArg

type IRBArg struct {
	Name  string
	Value string
}

IRBArg struct. Represent parsed blueprint cli args

func ParseBPArgs

func ParseBPArgs(args []string) ([]*IRBArg, error)

type IRBError

type IRBError interface {
	// String representation, needed for error interface
	Error() string
	// ActionID if exists, empty string if not
	ActionID() string
	// The raw wrapped error
	WErr() error
}

type IRBErrors

type IRBErrors []IRBError

func (IRBErrors) Error

func (ies IRBErrors) Error() string

type IRBGenConfig

type IRBGenConfig struct {
	AllowResultReturn bool
	Args              []string
}

IRBGenConfig struct

type IRBlueprint

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

IRBlueprint struct. Intermediate Representation Blueprint. Precompiler.

func GenerateIRB

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

GenerateIRB func

func NewIRBFromAny

func NewIRBFromAny(bpurl *BlueprintURL, irbConf *IRBGenConfig) (*IRBlueprint, error)

type InternalParameters

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

InternalParameters struct Config params defined to be used internally.

Jump to

Keyboard shortcuts

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