kube

package
v0.0.0-...-24655b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewController(client rest.Interface, resourceType rt.Object, resource string, namespace string) CacheController

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) GetPod

func (cc *ClusterCache) GetPod(name, namespace string) *corev1.Pod

func (*ClusterCache) GetReplicaSet

func (cc *ClusterCache) GetReplicaSet(name, namespace string) *appsv1.ReplicaSet

func (*ClusterCache) GetServices

func (cc *ClusterCache) GetServices(labels map[string]string, namespace string) []*corev1.Service

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL