Documentation
¶
Index ¶
Constants ¶
const LocalService = "127.0.0.1:8000"
LocalService is the local instance of CrOSkylabAdmin.
const Major = 4
Major is the Major version number See b:215410393 for context behind bumping the version.
const Minor = 0
Minor is the Minor version number
const Patch = 0
Patch is the Patch version number
const ProdService = "chromeos-skylab-bot-fleet.appspot.com"
ProdService is the prod instance of CrOSSkylabAdmin.
const ProdUFS = "ufs.api.cr.dev"
ProdUFS is the unified fleet service.
const StagingService = "skylab-staging-bot-fleet.appspot.com"
StagingService is the staging instance of CrOSSkylabAdmin.
Variables ¶
var DefaultAuthOptions = chromeinfra.SetDefaultAuthOptions(auth.Options{ Scopes: append(gs.ReadWriteScopes, auth.OAuthScopeEmail), SecretsDir: SecretsDir(), })
DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.
var DefaultPRPCOptions = prpcOptionWithUserAgent(fmt.Sprintf("adminclient/%s", VersionNumber))
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.
VersionNumber is the version number for the tool. It follows the Semantic Versioning Specification (http://semver.org) and the format is: "MAJOR.MINOR.0+BUILD_TIME". We can ignore the PATCH part (i.e. it's always 0) to make the maintenance work easier. We can also print out the build time (e.g. 20060102150405) as the METADATA when show version to users.
Functions ¶
func SecretsDir ¶
func SecretsDir() string
SecretsDir customizes the location for auth-related secrets.
Types ¶
This section is empty.