Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RealSystem ¶
type RealSystem struct { }
RealSystem is how the hosting system works in real life
func (RealSystem) ExchangeToken ¶
ExchangeToken calls google auth server returns a oauth2 token if authentication succeeded
func (RealSystem) HomeDir ¶
func (rs RealSystem) HomeDir() string
HomeDir is the home directory of current user depending of the running system
func (RealSystem) OpenBrowser ¶
func (rs RealSystem) OpenBrowser(authURL string) error
OpenBrowser opens a browser in order to login and authorize bpal to use oauth2 secured apis.
func (RealSystem) Prompt ¶
func (rs RealSystem) Prompt() (string, error)
Prompt asks user the auth code returned by oauth server.
Click to show internal directories.
Click to hide internal directories.