Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeSSHProxyConfig ¶
type KubeSSHProxyConfig struct { KubeSSHProxy struct { SSH struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` // TODO añadir soporte para ssh-agent y contraseñas KeyPath string `yaml:"key_path"` } `yaml:"ssh"` BindPort int `yaml:"bind_port"` } }
KubeSSHProxyConfig is the Kubeconfig section that stores SSHProxy's stuff
func (*KubeSSHProxyConfig) UnmarshalYAML ¶
func (k *KubeSSHProxyConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshals yaml to match kube-ssh-proxy config
type Kubeconfig ¶
type Kubeconfig struct { CurrentCluster string CurrentContext string `yaml:"current-context"` Contexts []struct { Name string `yaml:"name"` } `yaml:"context"` KubeSSHProxyConfig }
Kubeconfig stores the relevant Kubeconfig information
func (*Kubeconfig) UnmarshalYAML ¶
func (k *Kubeconfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshals yaml to match kubeconfig config
Click to show internal directories.
Click to hide internal directories.