creds

package
v1.12.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 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 {
	HTTPClient *http.Client
}

AwsCredentialProvider provides AWS credentials.

func (*AwsCredentialProvider) GetCredentials

func (p *AwsCredentialProvider) GetCredentials(ctx context.Context) (*awsv4.StaticProvider, error)

GetCredentials generates AWS credentials.

type AwsCredentials

type AwsCredentials struct {
	Username string
	Password string
	Token    string
}

AwsCredentials contains AWS credential fields.

func (AwsCredentials) ValidateAndMakeCredentials

func (ac AwsCredentials) ValidateAndMakeCredentials() (*awsv4.StaticProvider, error)

ValidateAndMakeCredentials validates credential fields and packs them into awsv4.StaticProvider.

type GcpCredentialProvider

type GcpCredentialProvider struct {
	HTTPClient *http.Client
}

GcpCredentialProvider provides GCP credentials.

func (*GcpCredentialProvider) GetCredentials

func (p *GcpCredentialProvider) GetCredentials(ctx context.Context) (string, error)

GetCredentials generates GCP credentials.

Jump to

Keyboard shortcuts

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