auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessToken string
	CredsFile   string // Path to temporary credentials file
}

Credentials holds authentication information

func GetImpersonatedCredentials

func GetImpersonatedCredentials(ctx context.Context, serviceAccountEmail string) (*Credentials, error)

GetImpersonatedCredentials fetches an impersonated access token and creates a credentials file

func (*Credentials) Cleanup

func (c *Credentials) Cleanup() error

Cleanup removes the temporary credentials file

Jump to

Keyboard shortcuts

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