helper_test

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 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 {
	SvcList       []*api.Service
	LookupList    map[string][]net.IP
	EpList        map[string]*api.Endpoints
	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
}

CacheMock ...

func NewCacheMock

func NewCacheMock() *CacheMock

NewCacheMock ...

func (*CacheMock) ExternalNameLookup added in v0.10.9

func (c *CacheMock) ExternalNameLookup(externalName string) ([]net.IP, error)

ExternalNameLookup ...

func (*CacheMock) GetCASecretPath

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

GetCASecretPath ...

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) GetPod

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

GetPod ...

func (*CacheMock) GetSecretContent

func (c *CacheMock) GetSecretContent(defaultNamespace, secretName, keyName string) ([]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) (convtypes.CrtFile, error)

GetTLSSecretPath ...

func (*CacheMock) GetTerminatingPods

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

GetTerminatingPods ...

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