Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateHTTPClient ¶
func GenerateHTTPClient(ctx context.Context, logger *structured.StructuredLogger, iamClient IAMServiceClient, targetServiceAccount, userEmail, scopes string, tokenURL ...string) (*http.Client, error)
GenerateHTTPClient creates an authenticated HTTP client for GCP services.
Types ¶
type DefaultIAMServiceClient ¶
type DefaultIAMServiceClient struct{}
DefaultIAMServiceClient is an implementation of IAMServiceClient that talks to the real IAM service.
Click to show internal directories.
Click to hide internal directories.