Documentation
¶
Index ¶
- func OpenBrowser(url string) error
- type AuthClientImplementation
- func (c *AuthClientImplementation) FetchToken(code string) error
- func (c *AuthClientImplementation) GetTokenUser() (*nemgen.User, error)
- func (c *AuthClientImplementation) Login(params LoginParams) error
- func (c *AuthClientImplementation) LoginStatus(params LoginParams) error
- func (c *AuthClientImplementation) Logout(loggedoutMsg string) error
- func (c *AuthClientImplementation) RenderResponseHTML(success bool, responseErr error) (*string, error)
- type LoginParams
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenBrowser ¶
Types ¶
type AuthClientImplementation ¶
type AuthClientImplementation struct {
// contains filtered or unexported fields
}
func New ¶
func New(params Params) (AuthClientImplementation, error)
func (*AuthClientImplementation) FetchToken ¶
func (c *AuthClientImplementation) FetchToken(code string) error
func (*AuthClientImplementation) GetTokenUser ¶
func (c *AuthClientImplementation) GetTokenUser() (*nemgen.User, error)
func (*AuthClientImplementation) Login ¶
func (c *AuthClientImplementation) Login(params LoginParams) error
func (*AuthClientImplementation) LoginStatus ¶
func (c *AuthClientImplementation) LoginStatus(params LoginParams) error
LoginStatus reports who is logged in. Every command calls Login() first, so these lines are a side effect of running something else — they go to stderr, leaving stdout carrying only the command's own output. That contract matters for `describe` and `--json`, whose stdout is piped straight into a JSON parser.
func (*AuthClientImplementation) Logout ¶
func (c *AuthClientImplementation) Logout(loggedoutMsg string) error
func (*AuthClientImplementation) RenderResponseHTML ¶
func (c *AuthClientImplementation) RenderResponseHTML(success bool, responseErr error) (*string, error)
type LoginParams ¶
type Params ¶
type Params struct {
ConfigProvider configprovider.Provider
Localize *localize.Implementation
}
Click to show internal directories.
Click to hide internal directories.