Documentation ¶
Overview ¶
Package config provides constants used in configuring the behavior of the app.
Index ¶
Constants ¶
View Source
const ( // GCRCredHelperClientID is the client_id to be used when performing the // OAuth2 Authorization Code grant flow. // See https://developers.google.com/identity/protocols/OAuth2InstalledApp GCRCredHelperClientID = "99426463878-o7n0bshgue20tdpm25q4at0vs2mr4utq.apps.googleusercontent.com" // GCRCredHelperClientNotSoSecret is the client_secret to be used when // performing the OAuth2 Authorization Code grant flow. // See https://developers.google.com/identity/protocols/OAuth2InstalledApp GCRCredHelperClientNotSoSecret = "HpVi8cnKx8AAkddzaNrSWmS8" // MajorVersion is the credential helper's major version number. MajorVersion = 1 // MinorVersion is the credential helper's minor version number. MinorVersion = 0 // PatchVersion is the credential helper's patch version number. PatchVersion = 0 )
Variables ¶
View Source
var GCROAuth2Endpoint = google.Endpoint
GCROAuth2Endpoint describes the oauth2.Endpoint to be used when authenticating a GCR user.
View Source
var GCRScopes = []string{"https://www.googleapis.com/auth/cloud-platform"}
GCRScopes is/are the OAuth2 scope(s) to request during access_token creation.
View Source
var OAuthHTTPContext = oauth2.NoContext
OAuthHTTPContext is the HTTP context to use when performing OAuth2 calls.
View Source
var SupportedGCRRegistries = map[string]bool{ "gcr.io": true, "us.gcr.io": true, "eu.gcr.io": true, "asia.gcr.io": true, "b.gcr.io": true, "bucket.gcr.io": true, "appengine.gcr.io": true, "gcr.kubernetes.io": true, }
SupportedGCRRegistries maps registry URLs to a bool representing whether or not the GCR credentials can be used to authenticate requests for that repository.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.