Documentation ¶
Index ¶
- Variables
- func EnablePortForwardingForDashboard(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) (func(), error)
- func ForwardPort(log logr.Logger, pod *corev1.Pod, cfg *rest.Config, specMap *PortForwardSpec, ...) error
- func GetNextPortForwardKey(portForwards map[rune]PortForwardShortcut) (rune, error)
- func ShowPortForwards(ctx context.Context, log clilogger.Logger, ...)
- type PortForwardShortcut
- type PortForwardSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var PortForwardShortcutRunes = []rune{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}
Functions ¶
func EnablePortForwardingForDashboard ¶
func EnablePortForwardingForDashboard(ctx context.Context, log logger.Logger, kubeClient client.Client, config *rest.Config, namespace, podName, dashboardPort string) (func(), error)
EnablePortForwardingForDashboard enables port forwarding for the GitOps Dashboard.
func ForwardPort ¶
func GetNextPortForwardKey ¶ added in v0.13.0
func GetNextPortForwardKey(portForwards map[rune]PortForwardShortcut) (rune, error)
func ShowPortForwards ¶ added in v0.13.0
Types ¶
type PortForwardShortcut ¶ added in v0.13.0
type PortForwardSpec ¶
type PortForwardSpec struct { Namespace string Name string Kind string HostPort string ContainerPort string Map map[string]string }
func ParsePortForwardSpec ¶
func ParsePortForwardSpec(spec string) (*PortForwardSpec, error)
parse port forward specin the key-value format of "port=8000:8080,resource=svc/app,namespace=default"
Click to show internal directories.
Click to hide internal directories.