Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIKeyProvider ¶
type APIKeyProvider interface { // APIKey returns the API key used to authenticate with GMail APIs. // Returns an empty string if not available. APIKey() string }
APIKeyProvider is the interface implemented by API providers with an API key.
type GmailAPIProvider ¶
type GmailAPIProvider interface { // Service returns the GMail API service. Service(ctx context.Context, cfgDir string) (*gmail.Service, error) // ResetConfig cleans up the configuration. ResetConfig(cfgDir string) error // InitConfig initializes the configuration. InitConfig(cfgDir string) error }
GmailAPIProvider is the integration point between gmailctl commands and GMail APIs providers.
var APIProvider GmailAPIProvider
APIProvider is the APIProvider used by all gmailctl commands.
Click to show internal directories.
Click to hide internal directories.