credentials

package module
v1.17.35 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1,739

Documentation

Overview

Package credentials provides types for retrieving credentials from credentials sources.

Index

Constants

View Source
const (
	// StaticCredentialsName provides a name of Static provider
	StaticCredentialsName = "StaticCredentials"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticCredentialsEmptyError

type StaticCredentialsEmptyError struct{}

StaticCredentialsEmptyError is emitted when static credentials are empty.

func (*StaticCredentialsEmptyError) Error

type StaticCredentialsProvider

type StaticCredentialsProvider struct {
	Value aws.Credentials
}

A StaticCredentialsProvider is a set of credentials which are set, and will never expire.

func NewStaticCredentialsProvider

func NewStaticCredentialsProvider(key, secret, session string) StaticCredentialsProvider

NewStaticCredentialsProvider return a StaticCredentialsProvider initialized with the AWS credentials passed in.

func (StaticCredentialsProvider) Retrieve

Retrieve returns the credentials or error if the credentials are invalid.

Directories

Path Synopsis
Package ec2rolecreds provides the credentials provider implementation for retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS.
Package ec2rolecreds provides the credentials provider implementation for retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS.
Package endpointcreds provides support for retrieving credentials from an arbitrary HTTP endpoint.
Package endpointcreds provides support for retrieving credentials from an arbitrary HTTP endpoint.
Package processcreds is a credentials provider to retrieve credentials from a external CLI invoked process.
Package processcreds is a credentials provider to retrieve credentials from a external CLI invoked process.
Package ssocreds provides a credential provider for retrieving temporary AWS credentials using an SSO access token.
Package ssocreds provides a credential provider for retrieving temporary AWS credentials using an SSO access token.
Package stscreds are credential Providers to retrieve STS AWS credentials.
Package stscreds are credential Providers to retrieve STS AWS credentials.

Jump to

Keyboard shortcuts

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