client

package
v0.0.0-...-c27ebb6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = &cobra.Command{
	Use:   "client",
	Short: "openvpn-warder CLI",
	Long:  "The API CLI of openvpn-warder server",
	Run: func(cmd *cobra.Command, args []string) {
		c := config.NewClient()
		err := c.LoadFromFilePath(flagConfig)
		if err != nil {
			check.ErrorForExit(constants.Name, err)
			return
		}
	},
}

Client respresent openvpn-warder client app.

Functions

func GetUser

func GetUser(client *config.Client, userName string)

GetUser will send get user request to openvpn-warder server.

func InitClient

func InitClient()

InitClient will init client app.

Types

This section is empty.

Jump to

Keyboard shortcuts

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