package impersonate
Import Path
google.golang.org/api/internal/impersonate (on go.dev)
Dependency Relation
imports 9 packages, and imported by 2 packages
Involved Source Files
Package impersonate is used to impersonate Google Credentials.
Package-Level Type Names (total 4, in which 1 are exported)
Config for generating impersonated credentials.
Delegates are the service accounts in a delegation chain. Each service
account must be granted roles/iam.serviceAccountTokenCreator on the next
service account in the chain. Optional.
Scopes the impersonated credential should have. Required.
Target is the service account to impersonate. Required.
func TokenSource(ctx context.Context, ts oauth2.TokenSource, config *Config) (oauth2.TokenSource, error)
Package-Level Functions (total 2, in which 1 are exported)
TokenSource returns an impersonated TokenSource configured with the provided
config using ts as the base credential provider for making requests.
![]() |
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. |