action

package
v0.0.0-...-77b1a84 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 12 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

func Merge

func Merge(conf MergeConfig) 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 MergeConfig

type MergeConfig struct {
	Path string

	DryRun bool
	Force  bool
}

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