Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func RemoveCommand ¶ added in v0.8.0
RemoveCommand removes a subcommand.
Types ¶
type APIKeyProvider ¶ added in v0.10.0
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 ¶ added in v0.10.0
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.