Documentation
¶
Overview ¶
Package cmdaccount is the session and the tokens: callback login, logout, whoami and token.
Index ¶
- func Login(cobra *cobra.Command, args []string) error
- func Logout(cobra *cobra.Command, _ []string) error
- func TokenAdd(cobra *cobra.Command, args []string) error
- func TokenList(cobra *cobra.Command, _ []string) error
- func TokenRemove(cobra *cobra.Command, args []string) error
- func Whoami(cobra *cobra.Command, _ []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login opens a session on the server of args[0] with its password, and keeps it in the session file.
func Logout ¶
Logout ends the session on the server and removes the session file; a CALLBACK_SESSION token is left alone on disk, it was never there.
func TokenAdd ¶
TokenAdd creates an API token and prints it, alone on stdout for TOKEN=$(callback token add name).
func TokenRemove ¶
TokenRemove revokes a token.
Types ¶
This section is empty.