awscommon

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Hexa

Amazon Providers - Shared AWS Http Client awscommon

The awscommon package is used by all AWS based providers.

This package is used to parse an AWS access key from policyprovider.IntegrationInfo and return an aws.Config struct. It also defines an HTTPClient which can be used to establish testing overrides.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsClientConfig

func GetAwsClientConfig(key []byte, opt AWSClientOptions) (aws.Config, error)

Types

type AWSClientOptions

type AWSClientOptions struct {
	HTTPClient   AWSHttpClient
	DisableRetry bool
}

type AWSHttpClient

type AWSHttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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