utils

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSARNPrefix added in v1.14.7

func AWSARNPrefix(region string) string

AWSARNPrefix returns the ARN prefix of the partition the given region belongs to.

func AWSDNSSuffix added in v1.14.7

func AWSDNSSuffix(region string) string

AWSDNSSuffix returns the DNS suffix of the partition the given region belongs to.

func AWSPartitionForRegion added in v1.14.7

func AWSPartitionForRegion(region string) endpoints.Partition

AWSPartitionForRegion returns the AWS partition the given region belongs to, defaulting to the standard AWS partition for empty or unknown regions.

func CompareStringMaps added in v1.0.6

func CompareStringMaps(map1, map2 map[string]string) bool

func CompareStringSliceElements

func CompareStringSliceElements(lh []string, rh []string) bool

func ConvertFromLogTypes added in v1.9.0

func ConvertFromLogTypes(logTypes []ekstypes.LogType) []string

func ConvertToLogTypes added in v1.9.0

func ConvertToLogTypes(loggingTypes []string) []ekstypes.LogType

func CreateTagSpecs added in v1.0.6

func CreateTagSpecs(instanceTags map[string]string) []ec2types.LaunchTemplateTagSpecificationRequest

func GetInstanceTags added in v1.0.6

func GetInstanceTags(templateTags []ec2types.LaunchTemplateTagSpecification) map[string]string

func GetKeyValuesToUpdate

func GetKeyValuesToUpdate(tags map[string]string, upstreamTags map[string]string) map[string]string

func GetKeysToDelete

func GetKeysToDelete(tags map[string]string, upstreamTags map[string]string) []string

func MergeMaps added in v1.0.6

func MergeMaps(map1, map2 map[string]string) map[string]string

MergeMaps will add all keys and values from map2 to map1.

func Parse

func Parse(ref string) (namespace string, name string)

func SubtractMaps added in v1.0.6

func SubtractMaps(map1, map2 map[string]string) map[string]string

SubtractMaps will remove all keys and values in map2 from map1.

func SupportsDualStackEndpoints added in v1.14.7

func SupportsDualStackEndpoints(region string) bool

SupportsDualStackEndpoints returns true for every AWS partition except AWS China, which is the only partition where a service used by the operator, EC2, has no working dual-stack endpoint: ec2.<region>.amazonaws.com.cn exists but ec2.<region>.api.amazonwebservices.com.cn does not.

func ValuesFromMap added in v1.0.6

func ValuesFromMap(m map[string]string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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