Documentation ¶
Index ¶
Constants ¶
View Source
const (
//PodResource is a literal for pod resource
PodResource = "pods"
)
Variables ¶
This section is empty.
Functions ¶
func GetActivePods ¶
GetActivePods get all active pods from podCache and returns them.
func NewNodeLabeler ¶
func NewNodeLabeler(client v1core.CoreV1Interface, hostname string, labels map[string]string) *nodeLabeler
NewNodeLabeler returns a new nodeLabeler
func NewPodCache ¶
func NewPodCache(client kubernetes.Interface, hostName string)
NewPodCache creates a new podCache
func NewPodCacheForTest ¶
func NewPodCacheForTest(client kubernetes.Interface)
NewPodCacheForTest creates a new podCache for testing
Types ¶
type PodCache ¶
type PodCache struct {
// contains filtered or unexported fields
}
PodCache contains a podInformer of pod
func (*PodCache) OnAdd ¶
func (p *PodCache) OnAdd(obj interface{})
OnAdd is a callback function for informer, do nothing for now.
Click to show internal directories.
Click to hide internal directories.