auth

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package auth reports credential status for the providers a run uses. It asks each provider that supports authentication (the Authenticator capability) whether a credential is available, so the CLI can warn - actionably - before falling back to anonymous, rate-limited access. It performs no network calls beyond each provider's local credential lookup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Provider      string
	Authenticated bool
	Hint          string // how to authenticate, set only when not authenticated
}

Status is the credential state of one provider.

func Check

func Check(ctx context.Context, names []string) []Status

Check resolves credential status for each named provider that supports authentication. Names not registered, or providers that need no credentials, are skipped, so the result holds only providers with something to report.

Jump to

Keyboard shortcuts

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