cache

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubeCoreCache

func NewKubeCoreCache(ctx context.Context, client kubernetes.Interface) (*kubeCoreCaches, error)

This context should live as long as the cache is desired. i.e. if the cache is shared across clients, it should get a context that has a longer lifetime than the clients themselves

func NewKubeDeploymentCache

func NewKubeDeploymentCache(ctx context.Context, client kubernetes.Interface) (*kubeDeploymentCache, error)

This context should live as long as the cache is desired. i.e. if the cache is shared across clients, it should get a context that has a longer lifetime than the clients themselves

Types

type Cache

type Cache interface {
	Subscribe() <-chan struct{}
	Unsubscribe(<-chan struct{})
}

type KubeCoreCache

type KubeCoreCache interface {
	Cache
	PodLister() kubelisters.PodLister
	ServiceLister() kubelisters.ServiceLister
	ConfigMapLister() kubelisters.ConfigMapLister
	SecretLister() kubelisters.SecretLister
	NamespaceLister() kubelisters.NamespaceLister
}

type KubeDeploymentCache

type KubeDeploymentCache interface {
	DeploymentLister() kubelisters.DeploymentLister
	Subscribe() <-chan struct{}
	Unsubscribe(<-chan struct{})
}

Jump to

Keyboard shortcuts

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