client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(username string, password string) (string, error)

returns a JWT auth token, if successful

func ConnectWithToken

func ConnectWithToken(host string, port int, authToken string, certPool *x509.CertPool) (*grpc.ClientConn, context.Context, error)

func GetAuthTokenFromOptionOrConfigOrStdin

func GetAuthTokenFromOptionOrConfigOrStdin(
	optionTry bool,
	optionUsername string,
	optionPassword string,
	optionContinue bool,
	configTry bool,
	configContinue bool,
	stdinTry bool,
	stdinContinue bool,
	saveNewToken bool) (string, error)

func GrpcTlsConnect

func GrpcTlsConnect(host string, port int, ctx context.Context, certPool *x509.CertPool) (*grpc.ClientConn, error)

returns a connection object with established connection, if successful

Types

This section is empty.

Jump to

Keyboard shortcuts

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