Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardOnePort ¶
func ForwardOnePort(ctx context.Context, fw PortForwarder, ns, resourceName string, port int) (string, error)
ForwardOnePort provide a helper to forward only one port and return local endpoint
Types ¶
type DialerFunc ¶
type DialerFunc func(u *url.URL) httpstream.Dialer
func NewDialerFunc ¶
func NewDialerFunc(config *rest.Config) (DialerFunc, error)
type PortForwarder ¶
type PortForwarder interface {
Forward(ctx context.Context, namespace, resourceName string, remotePorts []int) ([]portforward.ForwardedPort, error)
}
PortForwarder represents an interface which can forward local ports to a pod.
func NewPortForwarderForConfig ¶
func NewPortForwarderForConfig(config *rest.Config) (PortForwarder, error)
Click to show internal directories.
Click to hide internal directories.