helper_test

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObject

func CreateObject(cfg string) runtime.Object

CreateObject ...

func CreateService

func CreateService(name, port, endpoints string) (*api.Service, *api.Endpoints)

CreateService ...

Types

type CacheMock

type CacheMock struct {
	Changed       *convtypes.ChangedObjects
	IngList       []*networking.Ingress
	IngClassList  []*networking.IngressClass
	SvcList       []*api.Service
	EpList        map[string]*api.Endpoints
	ConfigMapList map[string]*api.ConfigMap
	TermPodList   map[string][]*api.Pod
	PodList       map[string]*api.Pod
	SecretTLSPath map[string]string
	SecretCAPath  map[string]string
	SecretCRLPath map[string]string
	SecretDHPath  map[string]string
	SecretContent SecretContent
	// contains filtered or unexported fields
}

CacheMock ...

func NewCacheMock

func NewCacheMock(tracker convtypes.Tracker) *CacheMock

NewCacheMock ...

func (*CacheMock) GetCASecretPath

func (c *CacheMock) GetCASecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (ca, crl convtypes.File, err error)

GetCASecretPath ...

func (*CacheMock) GetConfigMap added in v0.12.1

func (c *CacheMock) GetConfigMap(configMapName string) (*api.ConfigMap, error)

GetConfigMap ...

func (*CacheMock) GetDHSecretPath

func (c *CacheMock) GetDHSecretPath(defaultNamespace, secretName string) (convtypes.File, error)

GetDHSecretPath ...

func (*CacheMock) GetEndpoints

func (c *CacheMock) GetEndpoints(service *api.Service) (*api.Endpoints, error)

GetEndpoints ...

func (*CacheMock) GetIngress added in v0.11.1

func (c *CacheMock) GetIngress(ingressName string) (*networking.Ingress, error)

GetIngress ...

func (*CacheMock) GetIngressClass added in v0.12.1

func (c *CacheMock) GetIngressClass(className string) (*networking.IngressClass, error)

GetIngressClass ...

func (*CacheMock) GetIngressList added in v0.11.1

func (c *CacheMock) GetIngressList() ([]*networking.Ingress, error)

GetIngressList ...

func (*CacheMock) GetPod

func (c *CacheMock) GetPod(podName string) (*api.Pod, error)

GetPod ...

func (*CacheMock) GetPodNamespace added in v0.12.1

func (c *CacheMock) GetPodNamespace() string

GetPodNamespace ...

func (*CacheMock) GetSecretContent

func (c *CacheMock) GetSecretContent(defaultNamespace, secretName, keyName string, track convtypes.TrackingTarget) ([]byte, error)

GetSecretContent ...

func (*CacheMock) GetService

func (c *CacheMock) GetService(serviceName string) (*api.Service, error)

GetService ...

func (*CacheMock) GetTLSSecretPath

func (c *CacheMock) GetTLSSecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (convtypes.CrtFile, error)

GetTLSSecretPath ...

func (*CacheMock) GetTerminatingPods

func (c *CacheMock) GetTerminatingPods(service *api.Service, track convtypes.TrackingTarget) ([]*api.Pod, error)

GetTerminatingPods ...

func (*CacheMock) NeedFullSync added in v0.11.1

func (c *CacheMock) NeedFullSync() bool

NeedFullSync ...

func (*CacheMock) SwapChangedObjects added in v0.11.1

func (c *CacheMock) SwapChangedObjects() *convtypes.ChangedObjects

SwapChangedObjects ...

type SecretContent

type SecretContent map[string]map[string][]byte

SecretContent ...

Jump to

Keyboard shortcuts

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