authmode

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthError

func IsAuthError(err error) bool

func MatchError

func MatchError(resolved authconfig.Resolved, session *authstore.Session) error

func MissingLoginError

func MissingLoginError() error

func ReauthError

func ReauthError(message string) error

func SessionMatches

func SessionMatches(resolved authconfig.Resolved, session authstore.Session) bool

func WrapConfigError

func WrapConfigError(err error) error

Types

type Mode

type Mode string
const (
	ModeNone   Mode = "none"
	ModeAPIKey Mode = "api_key"
	ModeOAuth  Mode = "oauth"
)

func DescribeMode

func DescribeMode(resolved authconfig.Resolved, session *authstore.Session) Mode

type Result

type Result struct {
	Mode        Mode
	APIKey      string
	AccessToken string
	Session     *authstore.Session
}

func Resolve

func Resolve(ctx context.Context, resolved authconfig.Resolved) (Result, error)

Jump to

Keyboard shortcuts

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