Documentation ¶
Overview ¶
Package pod cache kubernetes pod in memory and db It handle local scheduler pod host ip info. It will provides query pod list by app
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbnormalInfo ¶
type AbnormalInfo struct { ServiceID string `json:"service_id"` ServiceAlias string `json:"service_alias"` PodName string `json:"pod_name"` ContainerName string `json:"container_name"` Reason string `json:"reson"` Message string `json:"message"` CreateTime time.Time `json:"create_time"` Count int `json:"count"` }
AbnormalInfo pod Abnormal info Record the container exception exit information in pod.
func (AbnormalInfo) String ¶
func (a AbnormalInfo) String() string
type CacheManager ¶
type CacheManager struct {
// contains filtered or unexported fields
}
CacheManager pod cache manager
func NewCacheManager ¶
func NewCacheManager(kubeclient *kubernetes.Clientset) *CacheManager
NewCacheManager create pod cache manager and start it
func (*CacheManager) RemoveWatch ¶
func (c *CacheManager) RemoveWatch(w *cacheWatch)
RemoveWatch remove watch
Click to show internal directories.
Click to hide internal directories.