Documentation
¶
Overview ¶
Package site contains site local constants for the qscheduler tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultAuthOptions = auth.Options{ ClientID: "446450136466-2hr92jrq8e6i4tnsa56b52vacp7t3936.apps.googleusercontent.com", ClientSecret: "uBfbay2KCy9t4QveJ-dOqHtp", SecretsDir: SecretsDir(), Scopes: []string{auth.OAuthScopeEmail}, }
DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.
TODO: This is copied from the Go swarming client. We should probably get our own OAuth client credentials at some point.
var DefaultPRPCOptions *prpc.Options
DefaultPRPCOptions is used for PRPC clients. If it is nil, the default value is used. See prpc.Options for details.
This is provided so it can be overridden for testing.
var Dev = Environment{
QSchedulerHost: "qscheduler-dev.chromium.org",
}
Dev is the environment for dev.
var Prod = Environment{
QSchedulerHost: "qscheduler-prod.chromium.org",
}
Prod is the environment for prod.
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 ¶
type Environment ¶
type Environment struct {
QSchedulerHost string
}
Environment contains environment specific values.