auth

package
v0.0.0-...-4dd3a81 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotLoggedIn = errors.New("not logged in")

Functions

func HandleLogin

func HandleLogin(insightsHost string) error

func HandleLogout

func HandleLogout() error

func IsLoggedIn

func IsLoggedIn() bool

func PrintStatus

func PrintStatus(insightsHost string) error

func PrintToken

func PrintToken() error

Types

type Host

type Host struct {
	Token        string `yaml:"token"`
	User         string `yaml:"user"`
	Organization string `yaml:"organization"`
}

func GetAuth

func GetAuth(insightsHost string) (*Host, error)

Jump to

Keyboard shortcuts

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