auth

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(ctx context.Context, out io.Writer) error

Login logs the user in and stores the credentials for later use. Interactive messages are printed to w.

func Logout

func Logout() error

Logout deletes the client credentials

func SetCurrentOrg added in v0.11.5

func SetCurrentOrg(org *Org) error

func Token added in v0.11.5

func Token(ctx context.Context) (*oauth2.Token, error)

func TokenSource

func TokenSource(ctx context.Context) (oauth2.TokenSource, error)

Types

type Org added in v0.11.5

type Org struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func CurrentOrg added in v0.11.5

func CurrentOrg() (*Org, error)

Jump to

Keyboard shortcuts

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