Documentation
¶
Index ¶
- func GetTag(tags []types.Tag, key string) (*types.Tag, bool)
- func GetTagValue(tags []types.Tag, key string) (string, bool)
- func HasTag(tags []types.Tag, key, value string) bool
- func IsAWSError(err error, code string) bool
- func IsAWSErrorType(err error) bool
- func IsResourceNotFoundException(err error) bool
- func New(config Config) (preload.Interface, error)
- func SanitizeName(name string) string
- func ToMapTags(tags map[string]string) []map[string]interface{}
- type Config
- type EC2API
- type EKSAPI
- type STSAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTagValue ¶
GetTagValue returns the value of the given tag key if it exist
func IsAWSError ¶
IsAWSError returns true if the given error is an AWS error
func IsAWSErrorType ¶
IsAWSErrorType returns true if the given error is an AWS error
func IsResourceNotFoundException ¶
IsResourceNotFoundException returns true if the given error is a resource not found error
func SanitizeName ¶ added in v0.3.27
SanitizeName sanitizes the given name
Types ¶
type Config ¶
type Config struct {
// ClusterName is the name of the EKS cluster.
ClusterName string
// Config is the AWS config to use when communicating with the AWS API.
Config aws.Config
}
Config is the configuration for the EKS preloader
type EC2API ¶ added in v0.5.7
type EC2API interface {
DescribeSubnets(ctx context.Context, params *ec2.DescribeSubnetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)
DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)
DescribeSecurityGroups(ctx context.Context, params *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)
}
EC2API defines the interface for EC2 operations
Click to show internal directories.
Click to hide internal directories.