action

package
v0.0.0-...-1e2aa48 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(conf AddConfig) error

TODO: test Add adds new kubectl config.

func Del

func Del(conf DelConfig) error

Del remove specified kubectl config

func Forward

func Forward(conf ForwardConfig) error

Types

type AddConfig

type AddConfig struct {
	RemoteUser string
	RemoteIP   string

	LocalPort  int
	SSHVia     string
	NameSuffix string

	DryRun bool
	Force  bool

	PrintSSHForwarding bool
}

type DelConfig

type DelConfig struct {
	Name   string
	All    bool
	DryRun bool
}

type ForwardConfig

type ForwardConfig struct {
	Name      string
	Operation string
	SSHVia    string
}

type Operation

type Operation int
const (
	OpPrint Operation = iota
	OpRun
	OpStop
)

Jump to

Keyboard shortcuts

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