Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenManager

type TokenManager interface {
	// GetToken returns the GitHub token.
	// It checks environment variables and system keyring.
	GetToken() (string, error)
	// SetToken stores the token in the system keyring.
	SetToken(token string) error
	// DeleteToken removes the token from the system keyring.
	DeleteToken() error
}

TokenManager manages GitHub authentication tokens.

func NewTokenManager

func NewTokenManager() TokenManager

NewTokenManager creates a new token manager.

Jump to

Keyboard shortcuts

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