google

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: BSD-3-Clause Imports: 17 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)
	// 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