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
Click to show internal directories.
Click to hide internal directories.