Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud interface {
// EC2 provides API to AWS EC2
EC2() services.EC2
// ELBV2 provides API to AWS ELBV2
ELBV2() services.ELBV2
// ACM provides API to AWS ACM
ACM() services.ACM
// WAFv2 provides API to AWS WAFv2
WAFv2() services.WAFv2
// WAFRegional provides API to AWS WAFRegional
WAFRegional() services.WAFRegional
// Shield provides API to AWS Shield
Shield() services.Shield
// RGT provides API to AWS RGT
RGT() services.RGT
// Region for the kubernetes cluster
Region() string
// VpcID for the LoadBalancer resources.
VpcID() string
}
func NewCloud ¶
func NewCloud(cfg CloudConfig, metricsRegisterer prometheus.Registerer) (Cloud, error)
NewCloud constructs new Cloud implementation.
type CloudConfig ¶
type CloudConfig struct {
// AWS Region for the kubernetes cluster
Region string
// Throttle settings for AWS APIs
ThrottleConfig *throttle.ServiceOperationsThrottleConfig
// VpcID for the LoadBalancer resources.
VpcID string
// VPC cache TTL in minutes
VpcCacheTTL time.Duration
// Max retries configuration for AWS APIs
MaxRetries int
// AWS endpoints configuration
AWSEndpoints map[string]string
}
func (*CloudConfig) BindFlags ¶
func (cfg *CloudConfig) BindFlags(fs *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.