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.
Click to show internal directories.
Click to hide internal directories.