Documentation ¶
Index ¶
- type ClientOption
- func WithConfigAndToken(config *oauth2.Config, token *oauth2.Token) ClientOption
- func WithConfigFileAndTokenFile(configFile string, tokenFile string) ClientOption
- func WithConfigReaderAndTokenReader(configReader io.Reader, tokenReader io.Reader) ClientOption
- func WithServiceAccountCredentials(file string) ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
ClientOption is an option for herschel client
func WithConfigAndToken ¶
func WithConfigAndToken(config *oauth2.Config, token *oauth2.Token) ClientOption
WithConfigAndToken returns a ClientOption that uses given config and token
func WithConfigFileAndTokenFile ¶
func WithConfigFileAndTokenFile(configFile string, tokenFile string) ClientOption
WithConfigFileAndTokenFile returns a ClientOption that loads config and token from given file paths
func WithConfigReaderAndTokenReader ¶
func WithConfigReaderAndTokenReader(configReader io.Reader, tokenReader io.Reader) ClientOption
WithConfigReaderAndTokenReader returns a ClientOption that loads config and token from given readers
func WithServiceAccountCredentials ¶
func WithServiceAccountCredentials(file string) ClientOption
WithServiceAccountCredentials returns a ClientOption that loads credentials from given file path
Click to show internal directories.
Click to hide internal directories.