kube

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortConfig added in v0.2.2

type PortConfig struct {
	LocalPort  int32
	TargetPort int32
}

type PortForwarder

type PortForwarder struct {
	Namespace string
	Name      string
	Ports     []PortConfig
	Forwarder *portforward.PortForwarder
}

func PortForward

func PortForward(f cmdutil.Factory, namespace string, svcName string, localIP net.IP, ports []PortConfig) (PortForwarder, error)

PortForward opens up a socket for the given local IP address and port and forwards it to the specified service and target port.

Jump to

Keyboard shortcuts

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