Documentation ¶
Index ¶
- Variables
- func CommandExecute()
- type Config
- type K8sPortForwardTunnel
- func (t K8sPortForwardTunnel) Down() error
- func (t K8sPortForwardTunnel) GetLocalPort() int
- func (t K8sPortForwardTunnel) IsUp() bool
- func (t K8sPortForwardTunnel) Name() string
- func (t K8sPortForwardTunnel) PortMapping() string
- func (t K8sPortForwardTunnel) Status() string
- func (t *K8sPortForwardTunnel) UnmarshalYAML(val *yaml.Node) error
- func (t K8sPortForwardTunnel) Up() error
- type SSHTunnel
- type Tunnel
- type TunnelType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConfig = errors.New("Error invalid config") ErrInvalidTunnelType = errors.New("Error invalid tunnel type") )
Functions ¶
func CommandExecute ¶
func CommandExecute()
Types ¶
type Config ¶
type Config struct {
Tunnels []Tunnel `yaml:"tunnels"`
}
func (*Config) UnmarshalYAML ¶
type K8sPortForwardTunnel ¶
type K8sPortForwardTunnel struct { TunnelType `yaml:",inline"` Context string `yaml:"context"` ResourceKind string `yaml:"resource_kind"` ResourceNamespace string `yaml:"resource_namespace"` ResourceName string `yaml:"resource_name"` RemotePort int `yaml:"remote_port"` LocalPort int `yaml:"local_port"` }
func (K8sPortForwardTunnel) Down ¶
func (t K8sPortForwardTunnel) Down() error
func (K8sPortForwardTunnel) GetLocalPort ¶
func (t K8sPortForwardTunnel) GetLocalPort() int
func (K8sPortForwardTunnel) IsUp ¶
func (t K8sPortForwardTunnel) IsUp() bool
func (K8sPortForwardTunnel) Name ¶
func (t K8sPortForwardTunnel) Name() string
func (K8sPortForwardTunnel) PortMapping ¶
func (t K8sPortForwardTunnel) PortMapping() string
func (K8sPortForwardTunnel) Status ¶
func (t K8sPortForwardTunnel) Status() string
func (*K8sPortForwardTunnel) UnmarshalYAML ¶
func (t *K8sPortForwardTunnel) UnmarshalYAML(val *yaml.Node) error
func (K8sPortForwardTunnel) Up ¶
func (t K8sPortForwardTunnel) Up() error
type SSHTunnel ¶
type SSHTunnel struct { TunnelType `yaml:",inline"` User string `yaml:"user"` NodeName string `yaml:"node_name"` RemotePort int `yaml:"remote_port"` LocalPort int `yaml:"local_port"` }
func (SSHTunnel) GetLocalPort ¶
func (SSHTunnel) PortMapping ¶
func (*SSHTunnel) UnmarshalYAML ¶
type TunnelType ¶
type TunnelType struct {
Type string `yaml:"type"`
}
Click to show internal directories.
Click to hide internal directories.