auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAuthFromKeyring

func DeleteAuthFromKeyring() error

func GetHeaders

func GetHeaders() (http.Header, error)

func StoreAuthInKeyring

func StoreAuthInKeyring(auth *Auth) error

Types

type Auth

type Auth struct {
	APIKey      string     `json:"apiKey,omitempty"`
	BearerToken string     `json:"bearerToken,omitempty"`
	OrgName     string     `json:"orgName"`
	ExpiresAt   *time.Time `json:"expiresAt,omitempty"`
}

func GetAuthFromKeyring

func GetAuthFromKeyring() (*Auth, error)

type AuthSource

type AuthSource string
const (
	ConfigAuthSource  AuthSource = "config"
	KeyringAuthSource AuthSource = "keyring"
)

type ResolvedAuth

type ResolvedAuth struct {
	Auth
	Source AuthSource `json:"source"`
}

func ResolveAuth

func ResolveAuth() (*ResolvedAuth, error)

Jump to

Keyboard shortcuts

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