Documentation
¶
Index ¶
- Constants
- type Manager
- func (m *Manager) DeleteToken(workspace string) error
- func (m *Manager) GetCurrentToken() (*Token, error)
- func (m *Manager) GetToken(workspace string) (*Token, error)
- func (m *Manager) IsAuthenticated(workspace string) bool
- func (m *Manager) ListWorkspaces() ([]string, error)
- func (m *Manager) SaveToken(workspace string, token *Token) error
- type Token
Constants ¶
View Source
const ( // ServiceName is the keyring service name ServiceName = "cu-cli" // DefaultWorkspace is the default workspace key DefaultWorkspace = "default" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles authentication
func (*Manager) DeleteToken ¶
DeleteToken removes a token from the keyring
func (*Manager) GetCurrentToken ¶
GetCurrentToken gets the token for the current workspace
func (*Manager) IsAuthenticated ¶
IsAuthenticated checks if the user is authenticated
func (*Manager) ListWorkspaces ¶
ListWorkspaces returns all workspaces with stored tokens
Click to show internal directories.
Click to hide internal directories.