types

package
v0.0.0-...-c96d5ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2020 License: GPL-2.0, GPL-3.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL