portforwarder

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PFWaitTimeout = time.Second * 5

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesInfo

type KubernetesInfo struct {
	Config    string `json:"config,omitempty"    yaml:"config,omitempty"`
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Endpoint  string `json:"endpoint,omitempty"  yaml:"endpoint,omitempty"`
	Context   string `json:"context,omitempty"   yaml:"context,omitempty"`
	Port      string `json:"port,omitempty"      yaml:"port,omitempty"`
	Kubectl   string `json:"kubectl"             yaml:"kubectl"`
	User      string `json:"user"                yaml:"user"`
}

func (KubernetesInfo) IsZeroValue

func (k KubernetesInfo) IsZeroValue() bool

type PortForwarder

type PortForwarder struct {
	Port int
	// contains filtered or unexported fields
}

func New

func New() *PortForwarder

func (*PortForwarder) Start

func (p *PortForwarder) Start(ctx context.Context, kinfo KubernetesInfo) error

Jump to

Keyboard shortcuts

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