Documentation ¶
Overview ¶
Package oauth2 contains helper functions for provisioning OAuth2 tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Token is the OAuth2 access token. TokenCode string `mapstructure:"token"` // TokenFile is the file containing the OAuth2 access token. TokenFile string `mapstructure:"token_file"` // NoWizard disables the token wizard. NoWizard bool `mapstructure:"no_wizard"` // Reader for prompting the user (defaults to stdin). Reader io.Reader `mapstructure:"-"` // Writer for prompting the user (defaults to stdout). Writer io.Writer `mapstructure:"-"` }
Config is the basis for storage configurations that require an OAuth2 token.
func (*Config) Token ¶
Token returns the OAuth2 token.
Click to show internal directories.
Click to hide internal directories.