eve

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInstState

type AppInstState struct {
	Name         string
	UUID         string
	Image        string
	AdamState    string
	EVEState     string
	InternalIP   []string
	ExternalIP   string
	InternalPort string
	ExternalPort string
	Memory       string
	// contains filtered or unexported fields
}

AppInstState stores state of app

type NetInstState

type NetInstState struct {
	Name        string
	UUID        string
	NetworkType config.ZNetworkInstType
	CIDR        string
	Stats       string
	AdamState   string
	EveState    string
	Activated   bool
	// contains filtered or unexported fields
}

NetInstState stores state of network instance

type State

type State struct {
	// contains filtered or unexported fields
}

State stores representation of EVE state we should assign InfoCallback and MetricCallback to update state

func Init

func Init(ctrl controller.Cloud, dev *device.Ctx) (ctx *State)

Init State object with controller and device

func (*State) Applications

func (ctx *State) Applications() []*AppInstState

Applications extracts applications states

func (*State) InfoAndMetrics

func (ctx *State) InfoAndMetrics() *projects.State

InfoAndMetrics returns last info and metric objects

func (*State) InfoCallback

func (ctx *State) InfoCallback() einfo.HandlerFunc

InfoCallback should be assigned to feed new values from info messages into state

func (*State) MetricCallback

func (ctx *State) MetricCallback() emetric.HandlerFunc

MetricCallback should be assigned to feed new values from metric messages into state

func (*State) NetList

func (ctx *State) NetList() error

NetList prints networks

func (*State) Networks

func (ctx *State) Networks() []*NetInstState

Networks extracts networks states

func (*State) PodsList

func (ctx *State) PodsList() error

PodsList prints applications

func (*State) VolumeList

func (ctx *State) VolumeList() error

VolumeList prints volumes

func (*State) Volumes

func (ctx *State) Volumes() []*VolInstState

Volumes extracts volumes states

type VolInstState

type VolInstState struct {
	Name       string
	UUID       string
	Image      string
	VolumeType config.Format
	Size       string
	MaxSize    string
	AdamState  string
	EveState   string
	Ref        string

	MountPoint string
	// contains filtered or unexported fields
}

VolInstState stores state of volumes

Jump to

Keyboard shortcuts

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