fwdsvcregistry

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(serviceFwd *fwdservice.ServiceFWD)

Add will add this service to the registry of services configured to do forwarding (if it wasn't already configured) and start the port-forwarding process.

func Done

func Done() <-chan struct{}

Done

func Init

func Init(shutDownSignal <-chan struct{})

Init

func RemoveByName

func RemoveByName(name string)

RemoveByName will shutdown and remove the service, identified by svcName.svcNamespace, from the inventory of services, if it was currently being configured to do forwarding.

func ShutDownAll

func ShutDownAll()

ShutDownAll will shutdown all active services and remove them from the registry

Types

type ServicesRegistry

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

ServicesRegistry is a structure to hold all of the kubernetes services to do port-forwarding for.

Jump to

Keyboard shortcuts

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