forward

package
v0.0.0-...-baa2a29 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pod

func Pod(spec Spec) *v1.Pod

Types

type Forwarder

type Forwarder struct {
	Namespace string
	Client    *kubernetes.Clientset
	Config    *rest.Config

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*Forwarder) Forward

func (f *Forwarder) Forward(ctx context.Context, spec Spec, stopChan chan struct{}) error

type Spec

type Spec struct {
	LocalPort int

	RemoteHost string
	RemotePort int

	Timeout time.Duration
}

func (*Spec) String

func (s *Spec) String() string

Jump to

Keyboard shortcuts

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