package auth
Import Path
golang.org/x/pkgsite/internal/auth (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
Package auth authorizes programs to make HTTP requests to the discovery site.
Package-Level Functions (total 3, in which 2 are exported)
Header returns a header value (typically a Bearer token) to be used in the
HTTP 'Authorization' header.
NewClient creates an http.Client for accessing go-discovery services.
Its first argument is the JSON contents of a service account credentials file.
If nil, default credentials are used.
Its second argument determines which client ID to use.
Package-Level Constants (total 2, neither is exported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |