gcp

package
v1.8.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsClient added in v1.8.0

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

func NewSecretsClient added in v1.8.0

func NewSecretsClient(ctx context.Context, opts ...SecretsClientOpt) (*SecretsClient, error)

func (*SecretsClient) GetJSONSecret added in v1.8.0

func (c *SecretsClient) GetJSONSecret(secretName, secretKey string) (string, error)

func (*SecretsClient) GetTextSecret added in v1.8.0

func (c *SecretsClient) GetTextSecret(secretName string) (string, error)

type SecretsClientOpt added in v1.8.0

type SecretsClientOpt interface {
	// contains filtered or unexported methods
}

func CacheTTL

func CacheTTL(ttl time.Duration) SecretsClientOpt

func CredentialsFile

func CredentialsFile(filename string) SecretsClientOpt

func CredentialsJson

func CredentialsJson(jsonBytes []byte) SecretsClientOpt

func Project

func Project(project string) SecretsClientOpt

func UseApplicationDefaultCredentials

func UseApplicationDefaultCredentials() SecretsClientOpt

Jump to

Keyboard shortcuts

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