Documentation ¶
Index ¶
- Constants
- Variables
- func CmdAlias(f cmdutil.Factory) *cobra.Command
- func CmdClone(f cmdutil.Factory) *cobra.Command
- func CmdConfig(f cmdutil.Factory) *cobra.Command
- func CmdConnect(f cmdutil.Factory) *cobra.Command
- func CmdControlPlane(_ cmdutil.Factory) *cobra.Command
- func CmdCp(f cmdutil.Factory) *cobra.Command
- func CmdDaemon(_ cmdutil.Factory) *cobra.Command
- func CmdDev(f cmdutil.Factory) *cobra.Command
- func CmdDisconnect(f cmdutil.Factory) *cobra.Command
- func CmdGet(f cmdutil.Factory) *cobra.Command
- func CmdLeave(f cmdutil.Factory) *cobra.Command
- func CmdList(f cmdutil.Factory) *cobra.Command
- func CmdLogs(f cmdutil.Factory) *cobra.Command
- func CmdOptions(cmdutil.Factory) *cobra.Command
- func CmdProxy(f cmdutil.Factory) *cobra.Command
- func CmdQuit(f cmdutil.Factory) *cobra.Command
- func CmdRemove(f cmdutil.Factory) *cobra.Command
- func CmdReset(f cmdutil.Factory) *cobra.Command
- func CmdSSH(_ cmdutil.Factory) *cobra.Command
- func CmdSSHDaemon(_ cmdutil.Factory) *cobra.Command
- func CmdServe(_ cmdutil.Factory) *cobra.Command
- func CmdStatus(f cmdutil.Factory) *cobra.Command
- func CmdUpgrade(_ cmdutil.Factory) *cobra.Command
- func CmdVersion(cmdutil.Factory) *cobra.Command
- func CmdWebhook(f cmdutil.Factory) *cobra.Command
- func GetClusterIDByConfig(cmd *cobra.Command, config Config) (string, error)
- func NewKubeVPNCommand() *cobra.Command
- type Config
Constants ¶
View Source
const ( FormatJson = "json" FormatYaml = "yaml" FormatTable = "table" )
Variables ¶
View Source
var ( OsArch = "" BuildTime = "" Branch = "" )
--ldflags -X
Functions ¶
func CmdAlias ¶ added in v2.2.7
CmdAlias * Name: test Needs: test1 Flags:
- connect
- --kubeconfig ~/.kube/config
- --namespace test
- --lite
---
Name: test1 Flags:
- connect
- --kubeconfig ~/.kube/jumper_config
- --namespace test
- --extra-hosts xxx.com
func CmdClone ¶
CmdClone multiple cluster operate, can start up one deployment to another cluster kubectl exec POD_NAME -c CONTAINER_NAME /sbin/killall5 or ephemeralcontainers
func CmdSSHDaemon ¶
CmdSSHDaemon set local tun ip 223.254.0.1/32, remember to use mask 32
func GetClusterIDByConfig ¶ added in v2.2.7
func NewKubeVPNCommand ¶
Types ¶
type Config ¶ added in v2.2.7
type Config struct { Name string `yaml:"Name"` Needs string `yaml:"Needs,omitempty"` Flags []string `yaml:"Flags,omitempty"` }
func ParseAndGet ¶ added in v2.2.7
func ParseConfig ¶ added in v2.2.7
Click to show internal directories.
Click to hide internal directories.