Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
LocalPort int // the local port for forwarding
RemotePort int // the remote port port for forwarding
Namespace string // the k8s namespace metadata
PodName string // the k8s pod metadata
ServiceName string // the k8s service metadata
Source string // the k8s source string, eg: svc/my-nginx-svc po/my-nginx-66b6c48dd5-ttdb2
}
type Result ¶
type Result struct {
Close func() // close the port forwarding
Ready func() ([][]portforward.ForwardedPort, error) // block till the forwarding ready
Wait func() // block and listen IOStreams close signal
}
Click to show internal directories.
Click to hide internal directories.