Discover Packages
github.com/jawahars16/kubex
watcher
package
Version:
v0.0.0-...-e46eeea
Opens a new window with list of versions in this module.
Published: Feb 7, 2019
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Storage(self)
WatchDeployments(socket, mutex, namespace)
WatchEvents(socket, mutex)
WatchNodes(socket, mutex)
WatchPodMetrics(socket, mutex)
WatchPods(socket, mutex)
WatchServices(socket, mutex, namespace)
WriteMeta(resource, socket, mutex)
Types
Source Files
Documentation
Documentation
¶
func Storage(self v1.ResourceList) *resource.Quantity
func WatchDeployments(socket infra.Socket, mutex *sync.Mutex, namespace string)
func WatchEvents(socket infra.Socket, mutex *sync.Mutex)
func WatchNodes(socket infra.Socket, mutex *sync.Mutex)
func WatchPodMetrics(socket infra.Socket, mutex *sync.Mutex)
func WatchPods(socket infra.Socket, mutex *sync.Mutex)
func WatchServices(socket infra.Socket, mutex *sync.Mutex, namespace string)
func WriteMeta(resource string, socket infra.Socket, mutex *sync.Mutex)
type AppMeta
type Deployment
type Event
type Meta
type Node
type Payload
type Pod
type PodMetrics
type Resources
type Service
type AppMeta struct {
Resource string `json:"resource,omitempty"`
}
type Deployment struct {
Meta `json:"meta,omitempty"`
Pods []string `json:"pods,omitempty"`
}
type Event struct {
Reason string `json:"reason,omitempty"`
InvolvedObjectName string `json:"involved_object_name,omitempty"`
}
type Meta struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Labels map[string ]string `json:"labels,omitempty"`
Created metav1 .Time `json:"created,omitempty"`
}
type Node struct {
Name string `json:"name,omitempty"`
CPU float64 `json:"cpu"`
Memory float64 `json:"memory"`
ReadyStatus bool `json:"readyStatus"`
}
type Payload struct {
Resource interface{} `json:"resource,omitempty"`
Action string `json:"action,omitempty"`
}
type Pod struct {
Meta `json:"meta,omitempty"`
Status v1 .PodStatus `json:"status,omitempty"`
Request Resources `json:"request,omitempty"`
Limit Resources `json:"limit,omitempty"`
Usage Resources `json:"usage,omitempty"`
Service string `json:"service,omitempty"`
Node string `json:"node,omitempty"`
}
type PodMetrics struct {
Pod string `json:"pod,omitempty"`
CPU float64 `json:"cpu"`
Memory float64 `json:"memory"`
Error string `json:"error,omitempty"`
}
type Resources struct {
CPU float64 `json:"cpu"`
Memory float64 `json:"memory"`
}
type Service struct {
Meta `json:"meta,omitempty"`
Selector map[string ]string `json:"selector,omitempty"`
Pods []string `json:"pods,omitempty"`
IP string `json:"ip,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.