Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kpoward ¶
type Kpoward struct {
// contains filtered or unexported fields
}
Kpoward.
func (*Kpoward) Run ¶
func (k *Kpoward) Run(ctx context.Context, cb func(ctx context.Context, localPort uint16) error) error
Run will call back the local bound free port. You can send any request to this port in the callback. Upon exiting the callback, port forwarding will automatically end and the port will be released.
func (*Kpoward) SetLocalPort ¶
SetLocalPort specify fixed local port.
func (*Kpoward) SetNamespace ¶
SetNamespace changes target namespace from default.
Click to show internal directories.
Click to hide internal directories.