Documentation ¶
Index ¶
- type CacheController
- type Client
- type ClusterCache
- func (cc *ClusterCache) GetPod(name, namespace string) *corev1.Pod
- func (cc *ClusterCache) GetReplicaSet(name, namespace string) *appsv1.ReplicaSet
- func (cc *ClusterCache) GetServices(labels map[string]string, namespace string) []*corev1.Service
- func (cc *ClusterCache) Run()
- func (cc *ClusterCache) Stop()
- type Controller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheController ¶
type CacheController interface { Run(chan struct{}) ListObjs() []interface{} }
func NewController ¶
type Client ¶
type Client interface { Run() Stop() GetPod(string, string) *corev1.Pod GetReplicaSet(string, string) *appsv1.ReplicaSet GetServices(map[string]string, string) []*corev1.Service }
func NewClusterCache ¶
func NewClusterCache(client *kubernetes.Clientset) Client
type ClusterCache ¶
type ClusterCache struct {
// contains filtered or unexported fields
}
func (*ClusterCache) GetReplicaSet ¶
func (cc *ClusterCache) GetReplicaSet(name, namespace string) *appsv1.ReplicaSet
func (*ClusterCache) GetServices ¶
func (*ClusterCache) Run ¶
func (cc *ClusterCache) Run()
func (*ClusterCache) Stop ¶
func (cc *ClusterCache) Stop()
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) ListObjs ¶
func (c *Controller) ListObjs() []interface{}
func (*Controller) Run ¶
func (c *Controller) Run(stopCh chan struct{})
Click to show internal directories.
Click to hide internal directories.