Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PickFreePort ¶
PickFreePort asks the kernel for a free open port that is ready to use.
Types ¶
type PortForward ¶
type PortForward struct {
// contains filtered or unexported fields
}
PortForward provides port-forwarding functionality to results api service, so cli users would not bother to open a new terminal and type `kubectrl port-forward` manually
func NewPortForward ¶
func NewPortForward() (*PortForward, error)
NewPortForward create a new PortForward to do port-forwarding staff
func (*PortForward) ForwardPortBackground ¶
func (pf *PortForward) ForwardPortBackground(stopChan <-chan struct{}, port int) error
ForwardPortBackground do port-forwarding in background. stopChan control when port-forwarding stops, port specify which port on localhost port-forwarding will occupy
Click to show internal directories.
Click to hide internal directories.