aws

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud interface {
	// AppMesh provides API to AWS AppMesh
	AppMesh() services.AppMesh
	// CloudMap provides API to AWS CloudMap
	CloudMap() services.CloudMap
	//EKS provides API to AWS EKS
	EKS() services.EKS

	// AccountID provides AccountID for the kubernetes cluster
	AccountID() string

	// Region for the kubernetes cluster
	Region() string
}

func NewCloud

func NewCloud(cfg CloudConfig, metricsRegisterer prometheus.Registerer) (Cloud, error)

NewCloud constructs new Cloud implementation.

type CloudConfig added in v1.0.0

type CloudConfig struct {
	// AWS Region for the kubernetes cluster
	Region string
	// AccountID for the kubernetes cluster
	AccountID string
	// Throttle settings for aws APIs
	ThrottleConfig *throttle.ServiceOperationsThrottleConfig
	// DualStackEndpoint flag for aws APIs
	UseAwsDualStackEndpoint bool
	// FipsEndpoint flag for aws APIs
	UseAwsFIPSEndpoint bool
}

func (*CloudConfig) BindFlags added in v1.0.0

func (cfg *CloudConfig) BindFlags(fs *pflag.FlagSet)

func (*CloudConfig) GetAwsDualStackEndpoint added in v1.11.0

func (cfg *CloudConfig) GetAwsDualStackEndpoint() int

converts boolean values of Fips Endpoint into Integer which are used for AWS Services

func (*CloudConfig) GetAwsFIPSEndpoint added in v1.11.0

func (cfg *CloudConfig) GetAwsFIPSEndpoint() int

converts boolean values of Fips Endpoint into Integer which are used for AWS Services

func (*CloudConfig) HandleAccountID added in v1.6.0

func (cfg *CloudConfig) HandleAccountID(log logr.Logger)

function to check if aws accountId got converted to scientific notation, and convert back silently log any improperly formatted ids

Directories

Path Synopsis
Package services is a generated GoMock package.
Package services is a generated GoMock package.

Jump to

Keyboard shortcuts

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