serviceaccount

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 12 Imported by: 0

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.

func (*DefaultIAMServiceClient) SignJwt

func (c *DefaultIAMServiceClient) SignJwt(ctx context.Context, name string, payload string) (*iam.SignJwtResponse, error)

type IAMServiceClient

type IAMServiceClient interface {
	SignJwt(ctx context.Context, name string, payload string) (*iam.SignJwtResponse, error)
}

IAMServiceClient defines the interface for the IAM service operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL