Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAuthOptions = auth.Options{ ClientID: "", ClientSecret: "", SecretsDir: SecretsDir(), Scopes: []string{auth.OAuthScopeEmail, gitiles.OAuthScope}, }
DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.
Functions ¶
func SecretsDir ¶
func SecretsDir() string
SecretsDir returns an absolute path to a directory (in $HOME) to keep secret files in (e.g. OAuth refresh tokens) or an empty string if $HOME can't be determined (happens in some degenerate cases, it just disables auth token cache).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.