Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotAuthenticated is returned when the user is not logged in ErrNotAuthenticated = errors.New("not authenticated") )
Functions ¶
func GetRegistryURL ¶
func GetRegistryURL() string
GetRegistryURL returns the registry URL from environment or default
func IsAuthenticated ¶
func IsAuthenticated() bool
IsAuthenticated checks if the user is currently authenticated
func SaveCredentials ¶
func SaveCredentials(creds *Credentials) error
SaveCredentials saves authentication credentials to disk
Types ¶
type Credentials ¶
Credentials stores the user's authentication information
func LoadCredentials ¶
func LoadCredentials() (*Credentials, error)
LoadCredentials loads authentication credentials from disk
Click to show internal directories.
Click to hide internal directories.