Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OsArch = "" GitCommit = "" BuildTime = "" Branch = "" Version = "latest" )
--ldflags -X
View Source
var CmdWebhook = &cobra.Command{ Use: "webhook", Short: "Starts a HTTP server, useful for creating MutatingAdmissionWebhook", Long: `Starts a HTTP server, useful for creating MutatingAdmissionWebhook. After deploying it to Kubernetes cluster, the Administrator needs to create a MutatingWebhookConfiguration in the Kubernetes cluster to register remote webhook admission controllers.`, Args: cobra.MaximumNArgs(0), Run: webhook.Main, }
View Source
var RootCmd = &cobra.Command{
Use: "kubevpn",
Short: "kubevpn",
Long: `kubevpn`,
}
View Source
var ServerCmd = &cobra.Command{ Use: "serve", Short: "Server side, startup traffic manager, forward inbound and outbound traffic", Long: `Server side, startup traffic manager, forward inbound and outbound traffic.`, 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.Background(), route) if err != nil { log.Fatal(err) } select {} }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.