Documentation
¶
Index ¶
- func DeleteHostCredentials(host string) error
- func GetValidToken(ctx context.Context, host string) (string, error)
- func Login(ctx context.Context, host string) error
- func Logout(host string) error
- func SaveConfig(cfg *Config) error
- func SaveCredentials(creds Credentials) error
- func SaveHostCredentials(host string, hostCreds HostCredentials) error
- type Config
- type Credentials
- type HostCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHostCredentials ¶
func SaveConfig ¶
func SaveCredentials ¶
func SaveCredentials(creds Credentials) error
func SaveHostCredentials ¶
func SaveHostCredentials(host string, hostCreds HostCredentials) error
Types ¶
type Credentials ¶
type Credentials map[string]HostCredentials
func LoadCredentials ¶
func LoadCredentials() (Credentials, error)
Click to show internal directories.
Click to hide internal directories.