base

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionOutput

type ActionOutput struct {
	Action  *blueprint.Action
	Records []*StorageRecord
}

ActionOutput struct

func NewActionOutput

func NewActionOutput(action *blueprint.Action, storageRecordValue interface{}, storageRecordValueID *string) *ActionOutput

NewActionOutput func.

type Actor

type Actor struct {
	Provider IProvider
}

Actor struct

type AttrTreeValue

type AttrTreeValue struct {
	IsString    bool
	Value       interface{}
	Description string
}

AttrTreeValue struct

func (*AttrTreeValue) String

func (a *AttrTreeValue) String() string

String func

type IActor

type IActor interface {
	RunAction(action *blueprint.Action) (*ActionOutput, error)
}

IActor interface

type IDirector

type IDirector interface {
	OneRun()
	StartDirector() error
}

IDirector interface

type ILogger

type ILogger interface {
	LogCritical(s string)
	LogErr(s string)
	ByteLogErr(b []byte)
	LogWarn(s string)
	LogInfo(s string)
	ByteLogInfo(b []byte)
	LogDebug(s string)
	Duplicate() ILogger
	SetActionID(ai string)
}

ILogger interface

type IManager

type IManager interface {
	PrepareIRB(irb *blueprint.IRBlueprint)
	GetStore() IStore
	InitNewStageFromActionID(action *blueprint.Action) (IStage, error)
	GetExecutionUUID() *string
	Run() error
}

IManager interface

type IProvider

type IProvider interface {
	HandleAction(action *blueprint.Action) (*ActionOutput, error)
	DumpStore(freshStore IStore)
}

IProvider interface

type IStage

type IStage interface {
	Init() error
}

IStage interface

type IStore

type IStore interface {
	StoreProvider(name string, provider IProvider)
	GetProvider(providerName string) (IProvider, error)
	Duplicate() IStore
	ExistsProvider(providerName string) bool
	GetLogger() ILogger
	SetLogger(logger ILogger)
	GetPrivateVar(varname string) interface{}
	SetPrivateVar(varname string, value interface{})
	Merge(IStore)
	GetActionOutputByActionID(actionID *string) (*ActionOutput, error)
	Insert(record *StorageRecord, providerPrefix string) error
	Interpolate(sourcetext *string) error
	GetPlain() (map[string]string, error)
	GetRawJSONValues() (map[string]json.RawMessage, error)
	DumpValuesToShellFile() (*os.File, error)
	DumpValuesToJSONFile() (*os.File, error)
	GetByRefName(refname string) (*StorageRecord, error)
	DeepInterpolation(v interface{}) error
}

IStore interface

type ProviderInitFunc

type ProviderInitFunc func(store IStore) (IProvider, error)

ProviderInitFunc type

type StorageRecord

type StorageRecord struct {
	ValueID    string                    `json:"valueID"`
	RefName    string                    `json:"refName"`
	Aout       *ActionOutput             `json:"-"`
	Action     *blueprint.Action         `json:"-"`
	RawSource  interface{}               `json:"-"`
	Value      interface{}               `json:"value"`
	PlainValue map[string]*AttrTreeValue `json:"-"`
	JSONValue  []byte                    `json:"rawjson"`
	IsString   bool                      `json:"-"`
	Fail       bool                      `json:"fail"`
	Error      error                     `json:"-"`
	ErrorStr   string                    `json:"error"`
}

StorageRecord struct

func (*StorageRecord) BuildInternals

func (sr *StorageRecord) BuildInternals() error

Jump to

Keyboard shortcuts

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