Documentation ¶
Index ¶
- Constants
- func GetStates(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Init() (err error)
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter() *mux.Router
- func Run() (err error)
- func Stop()
- type MonEngineInfo
- type PodStatus
- type PodsStatus
- type Route
- type Routes
- type Sandbox
- type UserData
Constants ¶
View Source
const EVENT_POD_ADDED = 0
index in array
View Source
const EVENT_POD_DELETED = 2
View Source
const EVENT_POD_MODIFIED = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MonEngineInfo ¶
type MonEngineInfo struct { PodType string PodName string Namespace string MeepApp string MeepOrigin string MeepScenario string Release string Phase string PodInitialized string PodReady string PodScheduled string PodUnschedulable string PodConditionError string ContainerStatusesMsg string NbOkContainers int NbTotalContainers int NbPodRestart int LogicalState string StartTime string }
type PodStatus ¶
type PodStatus struct { // Pod type PodType string `json:"podType,omitempty"` // Pod Sandbox Sandbox string `json:"sandbox,omitempty"` // Pod name Name string `json:"name,omitempty"` // Pod namespace Namespace string `json:"namespace,omitempty"` // Pod process name MeepApp string `json:"meepApp,omitempty"` // Pod origin(core, scenario) MeepOrigin string `json:"meepOrigin,omitempty"` // Pod scenario name MeepScenario string `json:"meepScenario,omitempty"` // Pod phase Phase string `json:"phase,omitempty"` // Pod initialized (true/false) PodInitialized string `json:"podInitialized,omitempty"` // Pod ready (true/false) PodReady string `json:"podReady,omitempty"` // Pod scheduled (true/false) PodScheduled string `json:"podScheduled,omitempty"` // Pod unschedulable (true/false) PodUnschedulable string `json:"podUnschedulable,omitempty"` // Pod error message PodConditionError string `json:"podConditionError,omitempty"` // Failed container error message ContainerStatusesMsg string `json:"containerStatusesMsg,omitempty"` // Number of containers that are up NbOkContainers string `json:"nbOkContainers,omitempty"` // Number of total containers in the pod NbTotalContainers string `json:"nbTotalContainers,omitempty"` // Number of container failures leading to pod restarts NbPodRestart string `json:"nbPodRestart,omitempty"` // State that is mapping the kubernetes api state LogicalState string `json:"logicalState,omitempty"` // Pod creation time StartTime string `json:"startTime,omitempty"` }
type PodsStatus ¶
type PodsStatus struct {
PodStatus []PodStatus `json:"podStatus,omitempty"`
}
List of all pods status
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type UserData ¶
type UserData struct { AllPodsStatus PodsStatus ExpectedPods map[string]*PodStatus }
Click to show internal directories.
Click to hide internal directories.