google

package
v1.0.84 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients interface {
	// Bucket constructs a new Bucket using Thelma's globally-configured Google authentication options
	Bucket(name string, options ...bucket.BucketOption) (bucket.Bucket, error)
	// Terra returns a new terraapi.TerraClient instance
	Terra() (terraapi.TerraClient, error)
	// SetSubject allows usage of domain-wide delegation privileges, to authenticate as a user via
	// a different account.
	SetSubject(subject string) Clients
	// PubSub returns a new google pubsub client
	PubSub(projectId string) (*pubsub.Client, error)
	// ClusterManager returns a new google container cluster manager client
	ClusterManager() (*container.ClusterManagerClient, error)
	// SqlAdmin returns a new google sql admin client
	SqlAdmin() (sqladmin.Client, error)
	// TokenSource returns an oauth TokenSource for this client factory's configured identity
	TokenSource() (oauth2.TokenSource, error)
}

Clients client factory for GCP api clients

func New

func New(thelmaConfig config.Config, thelmaRoot root.Root, shellRunner shell.Runner, vaultFactory api.VaultFactory) Clients

func NewUsingADC added in v0.0.44

func NewUsingADC(
	thelmaConfig config.Config,
	thelmaRoot root.Root,
	shellRunner shell.Runner,
	vaultFactory api.VaultFactory,
	allowNonBroad bool,
) Clients

func NewUsingVaultSA added in v0.0.44

func NewUsingVaultSA(
	thelmaConfig config.Config,
	thelmaRoot root.Root,
	shellRunner shell.Runner,
	vaultFactory api.VaultFactory,
	saVaultPath string,
	saVaultKey string,
) Clients

Directories

Path Synopsis
testing/assert
Package assert contains helper functions for making Testify assertions about objects in GCS buckets.
Package assert contains helper functions for making Testify assertions about objects in GCS buckets.

Jump to

Keyboard shortcuts

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