Documentation ¶
Overview ¶
Package site contains site local constants for the qscheduler tool.
Index ¶
Constants ¶
View Source
const OAuthScopeCloudPlatform = "https://www.googleapis.com/auth/cloud-platform"
OAuthScopeCloudPlatform is a scope for using Google Cloud Platform
View Source
const OAuthScopePubsub = "https://www.googleapis.com/auth/pubsub"
OAuthScopePubsub is a scope for using Google Cloud Pubsub
Variables ¶
View Source
var DefaultAuthOptions = auth.Options{ ClientID: "446450136466-2hr92jrq8e6i4tnsa56b52vacp7t3936.apps.googleusercontent.com", ClientSecret: "uBfbay2KCy9t4QveJ-dOqHtp", SecretsDir: SecretsDir(), Scopes: []string{OAuthScopeCloudPlatform, OAuthScopePubsub}, }
DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.
TODO(akeshet): This is copied from the Go swarming client. We should probably get our own OAuth client credentials at some point.
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.