cmds

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OsArch    = ""
	GitCommit = ""
	BuildTime = ""
	Branch    = ""
	Version   = "latest"
)

--ldflags -X

View Source
var RootCmd = &cobra.Command{
	Use:   "kubevpn",
	Short: "kubevpn",
	Long:  `kubevpn`,
}
View Source
var ServerCmd = &cobra.Command{
	Use:   "serve",
	Short: "serve",
	Long:  `serve`,
	PreRun: func(*cobra.Command, []string) {
		util.InitLogger(config.Debug)
		go func() { log.Info(http.ListenAndServe("localhost:6060", nil)) }()
	},
	Run: func(cmd *cobra.Command, args []string) {
		err := handler.Start(context.TODO(), route)
		if err != nil {
			log.Fatal(err)
		}
		select {}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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