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) // 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) // IdTokenGenerator returns a function suitable to be an issueFn for credentials.TokenProvider IdTokenGenerator(audience string, serviceAccountChain ...string) (func() ([]byte, error), error) }
Clients factory for GCP api clients
type Option ¶ added in v1.1.3
type Option func(*Options)
func OptionForceADC ¶ added in v1.1.3
func OptionForceVaultSA ¶ added in v1.1.3
type Options ¶ added in v1.1.3
type Options struct { // ConfigSource should be provided if neither OptionForceADC nor OptionForceVaultSA are passed. ConfigSource config.Config // VaultFactory will be lazily executed if Vault SA auth is used. VaultFactory func() (*vaultapi.Client, error) // Subject, when set, indicates that delegation to that subject should be attempted. Subject string // contains filtered or unexported fields }
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. |
Click to show internal directories.
Click to hide internal directories.