Documentation
¶
Index ¶
- type AppInstState
- type NetInstState
- type State
- func (ctx *State) Applications() []*AppInstState
- func (ctx *State) InfoAndMetrics() *projects.State
- func (ctx *State) InfoCallback() einfo.HandlerFunc
- func (ctx *State) MetricCallback() emetric.HandlerFunc
- func (ctx *State) NetList() error
- func (ctx *State) Networks() []*NetInstState
- func (ctx *State) PodsList() error
- func (ctx *State) VolumeList() 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
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 ¶
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) Networks ¶
func (ctx *State) Networks() []*NetInstState
Networks extracts networks states
Click to show internal directories.
Click to hide internal directories.