helper_test

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 7 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
	EpList        map[string]*api.Endpoints
	TermPodList   map[string][]*api.Pod
	PodList       map[string]*api.Pod
	SecretTLSPath map[string]string
	SecretCAPath  map[string]string
	SecretDHPath  map[string]string
	SecretContent SecretContent
}

CacheMock ...

func NewCacheMock

func NewCacheMock() *CacheMock

NewCacheMock ...

func (*CacheMock) GetCASecretPath

func (c *CacheMock) GetCASecretPath(defaultNamespace, secretName string) (convtypes.File, 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.File, 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