creds

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package creds is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee.

WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

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