Documentation ¶
Index ¶
- func AccessScopes() []string
- type Config
- func (c *Config) Get(googleServiceAccountEmail string, credSource map[string]any) any
- func (c *Config) GetForFile(ctx context.Context, googleServiceAccountEmail, credFile string) (*google.Credentials, error)
- func (c *Config) TokenExpirationSeconds() int
- func (c *Config) WorkloadIdentityProviderAudience() string
- type ConfigOptions
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) GetForFile ¶ added in v0.3.0
func (*Config) TokenExpirationSeconds ¶
func (*Config) WorkloadIdentityProviderAudience ¶
type ConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.