Documentation ¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSender ¶ added in v0.4.0
type EventSender func(event interface{}) error
type Log ¶ added in v0.4.0
type Log struct { Message string ComputationId string Level string Timestamp *timestamppb.Timestamp }
type Provider ¶
type Provider func(config interface{}, eventSender EventSender, computationId string) VM
type StateMachine ¶ added in v0.4.0
type StateMachine interface { Transition(newState manager.ManagerState) error State() string }
func NewStateMachine ¶ added in v0.4.0
func NewStateMachine() StateMachine
type Stderr ¶
type Stderr struct { EventSender EventSender ComputationId string StateMachine StateMachine }
type Stdout ¶
type Stdout struct { EventSender EventSender ComputationId string }
type VM ¶
type VM interface { Start() error Stop() error SendAgentConfig(ac agent.Computation) error SetProcess(pid int) error GetProcess() int GetCID() int Transition(newState pkgmanager.ManagerState) error State() string GetConfig() interface{} }
VM represents a virtual machine.
Click to show internal directories.
Click to hide internal directories.