Documentation ¶
Index ¶
Constants ¶
View Source
const CacheDirectory = ".birthday-pal"
CacheDirectory is the location of bpal's cached files
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationClient ¶
AuthenticationClient can do a HTTP GET with required authentication
type OAuth2Authenticator ¶
type OAuth2Authenticator struct { Scope string Profile OAuthProfile }
OAuth2Authenticator is used to perform OAuth2Authenticator authentication
func (OAuth2Authenticator) Authenticate ¶
func (oa OAuth2Authenticator) Authenticate(configFilePath string) error
Authenticate parses and save the config file provided by user then performs a an OAuth2Authenticator authentication then saves token in cache
type OAuthProfile ¶
OAuthProfile holds logic of cache storage of oauth authentication profiles
func (OAuthProfile) ListProfiles ¶
func (oap OAuthProfile) ListProfiles() ([]string, error)
ListProfiles lists the registered profiles by looking inside cache directory
Click to show internal directories.
Click to hide internal directories.