executive

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerMode bool = false

Functions

func InitDirector

func InitDirector(serverMode bool, interactiveMode bool) error

InitDirector func

func InitServerMode

func InitServerMode() chan error

func RemoveDirector

func RemoveDirector()

Types

type ActionRunStatus

type ActionRunStatus int

ActionRunStatus int

const (
	// ActionQueued const
	ActionQueued ActionRunStatus = iota
	// ActionRunning const
	ActionRunning
	// ActionNotRunning const
	ActionNotRunning
)

type AutocompleteResponse

type AutocompleteResponse struct {
	Code             string                           `json:"code"`
	Fail             bool                             `json:"Fail"`
	Errors           []string                         `json:"Errors"`
	ValidationErrors []*ValidationError               `json:"validation_errors"`
	Result           map[string][]*base.StorageRecord `json:"result"`
}

AutocompleteResponse struct

type Director

type Director struct {
	ExecInstruction chan *ExecCtrlInstruction

	HandleIRB         chan *HandleIRBConfig
	UnregisterManager chan *Manager
	StopDirector      chan int

	ExitCode int
	// contains filtered or unexported fields
}

Director struct

var MDirector *Director

MDirector var

func (*Director) Wait

func (d *Director) Wait()

Wait func

type ExecCtrlInstruction

type ExecCtrlInstruction struct {
	Instruction   ExecCtrlInstructionID
	ExecutionUUID *string
}

type ExecCtrlInstructionID

type ExecCtrlInstructionID int

ExecCtrlInstructionID int

const (
	// ExecStop const
	ExecStop ExecCtrlInstructionID = iota
	// ExecStart const
	ExecStart
	// ExecPause const
	ExecPause
	// ExecResume const
	ExecResume
	// ExecState const. Cast current state
	ExecState
	// ExecEmancipation const
	ExecEmancipation
	//
	ExecShutdown
)

type GenericResponse

type GenericResponse struct {
	Code             string             `json:"code"`
	Fail             bool               `json:"Fail"`
	Errors           []string           `json:"Errors"`
	ValidationErrors []*ValidationError `json:"validation_errors"`
}

GenericResponse struct

type HandleIRBConfig

type HandleIRBConfig struct {
	Manager *Manager
	IRB     *blueprint.IRBlueprint
}

type HandshakeRequest

type HandshakeRequest struct {
	Version string `json:"version"`
}

HandshakeRequest struct

type HandshakeResponse

type HandshakeResponse struct {
	Version string `json:"version"`
}

HandshakeResponse struct

type Manager

type Manager struct {
	Runtime *runtime.Runtime

	// The uuid generated by the builder or uuid asked to backend
	ExecutionUUID *string
	IRB           *blueprint.IRBlueprint

	Logger *cast.Logger
	Stats  *stats
	// contains filtered or unexported fields
}

Manager struct

func NewManager

func NewManager(serverMode bool) *Manager

NewManager func

func (*Manager) GetLogger

func (m *Manager) GetLogger() base.ILogger

GetLogger func

func (*Manager) PrepareIRB

func (m *Manager) PrepareIRB(irb *blueprint.IRBlueprint)

PrepareIRB func

func (*Manager) Run

func (m *Manager) Run() error

Run func

type ManagerStatusID

type ManagerStatusID int

ManagerStatusID int

type StageReportReason

type StageReportReason int

StageReportReason int

const (
	// StageEndByDivision const
	StageEndByDivision StageReportReason = iota
	// StageEndByJoin const
	StageEndByJoin
	// StageEndByRunDone const
	StageEndByRunDone
	// StageActionReport const
	StageActionReport
	// StagePause const
	StagePause
	// StageResume const
	StageResume
)

type ValidationError

type ValidationError struct {
	ValActionID string `json:"validation_actionid"`
	ValKey      string `json:"validation_key"`
	ValTag      string `json:"validation_tag"`
	ValError    string `json:"validation_error"`
}

Jump to

Keyboard shortcuts

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