googlecredentials

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessScopes

func AccessScopes() []string

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(opts ConfigOptions) (*Config, error)

func (*Config) Get

func (c *Config) Get(googleServiceAccountEmail string, credSource map[string]any) any

func (*Config) GetForFile added in v0.3.0

func (c *Config) GetForFile(ctx context.Context, googleServiceAccountEmail, credFile string) (*google.Credentials, error)

func (*Config) TokenExpirationSeconds

func (c *Config) TokenExpirationSeconds() int

func (*Config) WorkloadIdentityProviderAudience

func (c *Config) WorkloadIdentityProviderAudience() string

type ConfigOptions

type ConfigOptions struct {
	TokenExpirationSeconds   int
	WorkloadIdentityProvider string
}

Jump to

Keyboard shortcuts

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