store

package
v0.0.0-...-1bdd90c Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// GetEndpointsForService list all endpoints by service selector
	GetEndpointsForService(namespace, name string) (*corev1.Endpoints, error)
	GetService(namespace, name string) (*corev1.Service, error)
	ListServices(namespace string, label map[string]string) ([]*corev1.Service, error)
	GetManbaIngress(namespace, name string) (*configurationv1beta1.ManbaIngress, error)
	GetManbaCluster(namespace, name string) (*configurationv1beta1.ManbaCluster, error)
	ListManbaIngresses() []*configurationv1beta1.ManbaIngress
	GetSecret(namespace, name string) (*corev1.Secret, error)
}

Store is the interface that wraps the required methods to gather information about ingresses, services, secrets and ingress annotations.

func New

func New(kc kubernetes.Interface, factory informers.SharedInformerFactory, manbaFactory externalversions.SharedInformerFactory, isValidIngresClassFunc func(objectMeta *metav1.ObjectMeta) bool) Store

New creates a new object store to be used in the ingress controller

func NewFakeStore

func NewFakeStore(
	k8sObjects []runtime.Object, manbaObjects []runtime.Object) (Store, error)

NewFakeStore creates a store backed by the objects passed in as arguments.

Jump to

Keyboard shortcuts

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