repository

package
v0.0.0-...-3789051 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	// contains filtered or unexported fields
}

ConfigMap acceses k8s API to fetch/save ConfigMap objects

func (*ConfigMap) Get

func (h *ConfigMap) Get(namespace string, key string) (*v1.ConfigMap, error)

Get retrieves an ingress object by its name

func (*ConfigMap) Save

func (h *ConfigMap) Save(configMap *v1.ConfigMap) (*v1.ConfigMap, error)

Save stores the ConfigMap in the repository

type ConfigMapRepository

type ConfigMapRepository interface {
	Get(namespace string, key string) (*v1.ConfigMap, error)
	Save(configMap *v1.ConfigMap) (*v1.ConfigMap, error)
}

ConfigMapRepository is an interface to fetch or store ConfigMaps

func NewConfigMapRepository

func NewConfigMapRepository(client kubernetes.Interface, informerFactory informers.SharedInformerFactory) ConfigMapRepository

NewConfigMapRepository returns a repository instance

func NewFakeConfigMapRepository

func NewFakeConfigMapRepository() ConfigMapRepository

NewFakeConfigMapRepository returns an instance of the repository

type FakeConfigMap

type FakeConfigMap struct {
	// contains filtered or unexported fields
}

FakeConfigMap is an InMemory implementation of an ConfigMap repository

func (*FakeConfigMap) Get

func (h *FakeConfigMap) Get(namespace string, key string) (*v1.ConfigMap, error)

Get retrieves an ingress object by its name

func (*FakeConfigMap) Save

func (h *FakeConfigMap) Save(configMap *v1.ConfigMap) (*v1.ConfigMap, error)

Save stores the given configmap to the repository

type FakeIngress

type FakeIngress struct {
	// contains filtered or unexported fields
}

FakeIngress is an InMemory implementation of an Ingress repository

func (*FakeIngress) Get

func (h *FakeIngress) Get(namespace string, key string) (*v1beta1.Ingress, error)

Get retrieves an ingress object by its name

func (*FakeIngress) Save

func (h *FakeIngress) Save(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error)

Save saves the given Ingress object to the k8s API

type Ingress

type Ingress struct {
	// contains filtered or unexported fields
}

Ingress acceses k8s API to fetch/save Ingress objects

func (*Ingress) Get

func (h *Ingress) Get(namespace string, key string) (*v1beta1.Ingress, error)

Get retrieves an ingress object by its name

func (*Ingress) Save

func (h *Ingress) Save(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error)

Save saves the given Ingress object to the k8s API

type IngressRepository

type IngressRepository interface {
	Get(namespace string, key string) (*v1beta1.Ingress, error)
	Save(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error)
}

IngressRepository is an interface to fetch or store Ingress

func NewFakeIngressRepository

func NewFakeIngressRepository() IngressRepository

NewFakeIngressRepository returns an instance of the repository

func NewIngressRepository

func NewIngressRepository(client kubernetes.Interface, informerFactory informers.SharedInformerFactory) IngressRepository

NewIngressRepository returns a repository instance

Jump to

Keyboard shortcuts

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