cli

package
v0.0.0-...-7a34736 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (*grpc.ClientConn, error)

func Execute

func Execute(rootCmd *cobra.Command, exeFilename string, acceptsSubcommands bool)

Execute the command. If rootCmd is nil, we assume there is only one command in

func RegisterCmd

func RegisterCmd(group string, cmd *cobra.Command)

func WriteConfigFile

func WriteConfigFile() error

Types

type Client

type Client struct {
	ApiAddr  string
	CertPath string
	KeyPath  string
}

Client uses variables stored in viper to connect to the frontend

func NewClient

func NewClient() *Client

Jump to

Keyboard shortcuts

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