creds

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentialProvider

type AWSCredentialProvider struct {
	Cred *credentials.Credentials
}

AWSCredentialProvider wraps AWS credentials.

func NewAWSCredentialProvider

func NewAWSCredentialProvider(httpClient *http.Client, providers ...credentials.Provider) AWSCredentialProvider

NewAWSCredentialProvider generates new AWSCredentialProvider

func (AWSCredentialProvider) GetCredentialsDoc

func (p AWSCredentialProvider) GetCredentialsDoc(ctx context.Context) (bsoncore.Document, error)

GetCredentialsDoc generates AWS credentials.

type AzureCredentialProvider

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

AzureCredentialProvider provides Azure credentials.

func NewAzureCredentialProvider

func NewAzureCredentialProvider(httpClient *http.Client) AzureCredentialProvider

NewAzureCredentialProvider generates new AzureCredentialProvider

func (AzureCredentialProvider) GetCredentialsDoc

func (p AzureCredentialProvider) GetCredentialsDoc(ctx context.Context) (bsoncore.Document, error)

GetCredentialsDoc generates Azure credentials.

type GCPCredentialProvider

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

GCPCredentialProvider provides GCP credentials.

func NewGCPCredentialProvider

func NewGCPCredentialProvider(httpClient *http.Client) GCPCredentialProvider

NewGCPCredentialProvider generates new GCPCredentialProvider

func (GCPCredentialProvider) GetCredentialsDoc

func (p GCPCredentialProvider) GetCredentialsDoc(ctx context.Context) (bsoncore.Document, error)

GetCredentialsDoc generates GCP credentials.

Jump to

Keyboard shortcuts

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