types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromCtx

func ConfigFromCtx(ctx context.Context) (*aws.Config, error)

ConfigFromCtx get credential from context and creates an AWS SDK V2 Config.

Types

type Credential

type Credential types.Credential

Credential is a struct use to implement aws credentials.

func (Credential) Config

func (a Credential) Config() (*aws.Config, error)

Config creates an AWS SDK V2 Config.

func (Credential) Retrieve

func (a Credential) Retrieve(_ context.Context) (aws.Credentials, error)

Retrieve implement aws.CredentialsProvider interface.

Jump to

Keyboard shortcuts

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