cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesResourceCache

type KubernetesResourceCache interface {
	// HasSynced returns a value indicating whether the cache is synced.
	HasSynced() bool
	// GetIngress returns the Ingress resource with the specified namespace and name.
	GetIngress(string, string) (*extsv1beta1.Ingress, error)
	// GetIngresses returns a list of all Ingress resources in the specified namespace.
	GetIngresses(string) ([]*extsv1beta1.Ingress, error)
	// GetSecret returns the Secret resource with the specified namespace and name.
	GetSecret(namespace, name string) (*corev1.Secret, error)
	// GetService returns the Service resource with the specified namespace and name.
	GetService(string, string) (*corev1.Service, error)
	// GetServices returns a list of all Service resources in the specified namespace.
	GetServices(string) ([]*corev1.Service, error)
}

KubernetesResourceCache knows how to list Kubernetes resources.

func NewInformerBackedResourceCache

func NewInformerBackedResourceCache(factory kubeinformers.SharedInformerFactory) KubernetesResourceCache

NewInformerBackedResourceCache returns a new cache that reads resources using listers obtained from the provided shared informer factory..

Jump to

Keyboard shortcuts

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