connection

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

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

Connect returns a connection to the server. If there is an auth provider configured, the connection will be authenticated with the configured credentials.

func Login

func Login(manualLogin bool) error

Login logs in using the configured authentication provider. If manualLogin is true, the user will be given a URL to paste in a browser window, else a browser window will be opened automatically.

func Logout

func Logout() error

Logout removes the auth provider from the config. Effectively logging out.

Types

type Provider

type Provider string

Provider is the type of authentication provider.

Jump to

Keyboard shortcuts

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