namespacesMapping

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapperController

type MapperController interface {
	NamespaceReflectionController
	NamespaceMIrroringController
	NamespaceNatter

	PollStartMapper() chan struct{}
	PollStopMapper() chan struct{}
	ReadyForRestart()
	MappedNamespaces() map[string]string
	WaitForSync()
}

type NamespaceMIrroringController

type NamespaceMIrroringController interface {
	PollStartIncomingReflection() chan string
	PollStopIncomingReflection() chan string
}

type NamespaceMapper

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

func (*NamespaceMapper) DeNatNamespace

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

func (*NamespaceMapper) NatNamespace

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

type NamespaceMapperController

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

func NewNamespaceMapperController

func NewNamespaceMapperController(client crdClient.NamespacedCRDClientInterface, foreignClient kubernetes.Interface, homeClusterId, foreignClusterId string) (*NamespaceMapperController, error)

func (*NamespaceMapperController) DeNatNamespace

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

func (*NamespaceMapperController) MappedNamespaces

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

func (*NamespaceMapperController) NatNamespace

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

func (*NamespaceMapperController) PollStartIncomingReflection

func (c *NamespaceMapperController) PollStartIncomingReflection() chan string

func (*NamespaceMapperController) PollStartMapper

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

func (*NamespaceMapperController) PollStartOutgoingReflection

func (c *NamespaceMapperController) PollStartOutgoingReflection() chan string

func (*NamespaceMapperController) PollStopIncomingReflection

func (c *NamespaceMapperController) PollStopIncomingReflection() chan string

func (*NamespaceMapperController) PollStopMapper

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

func (*NamespaceMapperController) PollStopOutgoingReflection

func (c *NamespaceMapperController) PollStopOutgoingReflection() chan string

func (*NamespaceMapperController) ReadyForRestart

func (c *NamespaceMapperController) ReadyForRestart()

func (*NamespaceMapperController) WaitForSync

func (c *NamespaceMapperController) WaitForSync()

type NamespaceNatter

type NamespaceNatter interface {
	NatNamespace(namespace string, create bool) (string, error)
	DeNatNamespace(namespace string) (string, error)
}

type NamespaceReflectionController

type NamespaceReflectionController interface {
	PollStartOutgoingReflection() chan string
	PollStopOutgoingReflection() chan string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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