Documentation
¶
Index ¶
- func BrowserLogin(cmd *cobra.Command, name, apiURL string, noBrowser, makeActive bool) error
- func NewCmd() *cobra.Command
- func NewLoginCmd() *cobra.Command
- func NewLogoutCmd() *cobra.Command
- func RevokeSession(creds *internalConfig.OAuthCredentials)
- func TokenLogin(cmd *cobra.Command, name, apiURL string, makeActive bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserLogin ¶
BrowserLogin runs the OAuth login and stores the session in profile `name`.
func NewLoginCmd ¶
NewLoginCmd returns `login`, registered both at the root and under `auth`.
func NewLogoutCmd ¶
NewLogoutCmd returns `logout`, registered both at the root and under `auth`.
func RevokeSession ¶
func RevokeSession(creds *internalConfig.OAuthCredentials)
RevokeSession revokes a browser session on the server. Failures are only reported as a warning.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.