Documentation
¶
Index ¶
- type AppInstState
- type NetInstState
- type State
- func (ctx *State) Applications() []*AppInstState
- func (ctx *State) InfoAndMetrics() *testcontext.State
- func (ctx *State) InfoCallback() einfo.HandlerFunc
- func (ctx *State) MetricCallback() emetric.HandlerFunc
- func (ctx *State) NetList(outputFormat types.OutputFormat) error
- func (ctx *State) Networks() []*NetInstState
- func (ctx *State) PodsList(outputFormat types.OutputFormat) error
- func (ctx *State) VolumeList(outputFormat types.OutputFormat) error
- func (ctx *State) Volumes() []*VolInstState
- type VolInstState
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
MemoryUsed uint32
MemoryAvail uint32
CPUUsage int
Macs []string
Volumes map[string]uint32
// contains filtered or unexported fields
}
AppInstState stores state of app
type NetInstState ¶
type NetInstState struct {
Name string
UUID string
NetworkType string
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() *testcontext.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(outputFormat types.OutputFormat) error
NetList prints networks
func (*State) Networks ¶
func (ctx *State) Networks() []*NetInstState
Networks extracts networks states
func (*State) PodsList ¶
func (ctx *State) PodsList(outputFormat types.OutputFormat) error
PodsList prints applications
func (*State) VolumeList ¶
func (ctx *State) VolumeList(outputFormat types.OutputFormat) error
VolumeList prints volumes
type VolInstState ¶
type VolInstState struct {
Name string
UUID string
Image string
VolumeType string
Size string
MaxSize string
AdamState string
EveState string
LastError string
Ref string
MountPoint string
OriginType string
// contains filtered or unexported fields
}
VolInstState stores state of volumes