test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockNamespaceMapperController

func NewMockNamespaceMapperController(mapper *MockNamespaceMapper) namespacesMapping.MapperController

Types

type MockNamespaceMapper

type MockNamespaceMapper struct {
	Cache map[string]string
}

func (*MockNamespaceMapper) DeNatNamespace

func (m *MockNamespaceMapper) DeNatNamespace(namespace string) (string, error)

func (*MockNamespaceMapper) NatNamespace

func (m *MockNamespaceMapper) NatNamespace(namespace string, create bool) (string, error)

type MockNamespaceMapperController

type MockNamespaceMapperController struct {
	Mapper *MockNamespaceMapper
}

func (*MockNamespaceMapperController) DeNatNamespace

func (c *MockNamespaceMapperController) DeNatNamespace(namespace string) (string, error)

func (*MockNamespaceMapperController) MappedNamespaces

func (c *MockNamespaceMapperController) MappedNamespaces() map[string]string

func (*MockNamespaceMapperController) NatNamespace

func (c *MockNamespaceMapperController) NatNamespace(namespace string, create bool) (string, error)

func (*MockNamespaceMapperController) PollStartIncomingReflection

func (c *MockNamespaceMapperController) PollStartIncomingReflection() chan string

func (*MockNamespaceMapperController) PollStartMapper

func (c *MockNamespaceMapperController) PollStartMapper() chan struct{}

func (*MockNamespaceMapperController) PollStartOutgoingReflection

func (c *MockNamespaceMapperController) PollStartOutgoingReflection() chan string

func (*MockNamespaceMapperController) PollStopIncomingReflection

func (c *MockNamespaceMapperController) PollStopIncomingReflection() chan string

func (*MockNamespaceMapperController) PollStopMapper

func (c *MockNamespaceMapperController) PollStopMapper() chan struct{}

func (*MockNamespaceMapperController) PollStopOutgoingReflection

func (c *MockNamespaceMapperController) PollStopOutgoingReflection() chan string

func (*MockNamespaceMapperController) ReadyForRestart

func (c *MockNamespaceMapperController) ReadyForRestart()

func (*MockNamespaceMapperController) WaitForSync

func (c *MockNamespaceMapperController) WaitForSync()

Jump to

Keyboard shortcuts

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