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
Click to show internal directories.
Click to hide internal directories.