Documentation ¶
Index ¶
- func GetFreePort() (int, error)
- func StartTunnel(restConfig *restclient.Config, podName string, namspace string, ports []string, ...) error
- func TunnelForEachPod(ctx context.Context, config *rest.Config, clientset *kubernetes.Clientset, ...) error
- func TunnelForPod(ctx context.Context, config *rest.Config, pod *corev1.Pod, port int, ...) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
func StartTunnel ¶
func StartTunnel(restConfig *restclient.Config, podName string, namspace string, ports []string, opts ...Option) error
StartTunnel starts tunnel to podName in namspace on the listed ports (8080:8080 etc.)
func TunnelForEachPod ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithIOStreams ¶
func WithIOStreams(streams *genericclioptions.IOStreams) Option
func WithReadyChannel ¶
func WithReadyChannel(readyCh chan struct{}) Option
func WithStopChannel ¶
func WithStopChannel(stopCh <-chan struct{}) Option
Click to show internal directories.
Click to hide internal directories.