configsources

package module
v1.3.25 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIgnoreConfiguredEndpoints added in v1.2.1

func GetIgnoreConfiguredEndpoints(ctx context.Context, configs []interface{}) (value bool, found bool, err error)

GetIgnoreConfiguredEndpoints is used in knowing when to disable configured endpoints feature.

Currently duplicated from github.com/aws/aws-sdk-go-v2/config because service packages cannot import github.com/aws/aws-sdk-go-v2/config due to result import cycle error.

func ResolveEnableEndpointDiscovery

func ResolveEnableEndpointDiscovery(ctx context.Context, configs []interface{}) (value aws.EndpointDiscoveryEnableState, found bool, err error)

ResolveEnableEndpointDiscovery extracts the first instance of a EnableEndpointDiscoveryProvider from the config slice. Additionally returns a aws.EndpointDiscoveryEnableState to indicate if the value was found in provided configs, and error if one is encountered.

func ResolveServiceBaseEndpoint added in v1.2.1

func ResolveServiceBaseEndpoint(ctx context.Context, sdkID string, configs []interface{}) (value string, found bool, err error)

ResolveServiceBaseEndpoint is used to retrieve service endpoints from configured sources while allowing for configured endpoints to be disabled

func ResolveUseDualStackEndpoint added in v1.1.0

func ResolveUseDualStackEndpoint(ctx context.Context, configs []interface{}) (value aws.DualStackEndpointState, found bool, err error)

ResolveUseDualStackEndpoint extracts the first instance of a UseDualStackEndpoint from the config slice. Additionally returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.

func ResolveUseFIPSEndpoint added in v1.1.0

func ResolveUseFIPSEndpoint(ctx context.Context, configs []interface{}) (value aws.FIPSEndpointState, found bool, err error)

ResolveUseFIPSEndpoint extracts the first instance of a UseFIPSEndpointProvider from the config slice. Additionally, returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.

Types

type EnableEndpointDiscoveryProvider

type EnableEndpointDiscoveryProvider interface {
	GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, found bool, err error)
}

EnableEndpointDiscoveryProvider is an interface for retrieving external configuration value for Enable Endpoint Discovery

type IgnoreConfiguredEndpointsProvider added in v1.2.1

type IgnoreConfiguredEndpointsProvider interface {
	GetIgnoreConfiguredEndpoints(ctx context.Context) (bool, bool, error)
}

IgnoreConfiguredEndpointsProvider is needed to search for all providers that provide a flag to disable configured endpoints.

Currently duplicated from github.com/aws/aws-sdk-go-v2/config because service packages cannot import github.com/aws/aws-sdk-go-v2/config due to result import cycle error.

type ServiceBaseEndpointProvider added in v1.2.1

type ServiceBaseEndpointProvider interface {
	GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error)
}

ServiceBaseEndpointProvider is needed to search for all providers that provide a configured service endpoint

type UseDualStackEndpointProvider added in v1.1.0

type UseDualStackEndpointProvider interface {
	GetUseDualStackEndpoint(context.Context) (value aws.DualStackEndpointState, found bool, err error)
}

UseDualStackEndpointProvider is an interface for retrieving external configuration values for UseDualStackEndpoint

type UseFIPSEndpointProvider added in v1.1.0

type UseFIPSEndpointProvider interface {
	GetUseFIPSEndpoint(context.Context) (value aws.FIPSEndpointState, found bool, err error)
}

UseFIPSEndpointProvider is an interface for retrieving external configuration values for UseFIPSEndpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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