converters

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnknowTaintEffect is an error when a unknown TaintEffect is used.
	ErrUnknowTaintEffect = errors.New("uknown taint effect")

	// ErrUnknownCapacityType is an error when a unknown CapacityType is used.
	ErrUnknownCapacityType = errors.New("unknown capacity type")
)

Functions

func ASGTagsToMap added in v0.6.1

func ASGTagsToMap(src []*autoscaling.TagDescription) infrav1.Tags

ASGTagsToMap converts a []*autoscaling.TagDescription into a infrav1.Tags.

func AddonSDKToAddonState added in v0.6.4

func AddonSDKToAddonState(eksAddon *eks.Addon) *ekscontrolplanev1.AddonState

AddonSDKToAddonState is used to convert an AWS SDK Addon to a control plane AddonState.

func CapacityTypeToSDK added in v1.0.0

func CapacityTypeToSDK(capacityType expinfrav1.ManagedMachinePoolCapacityType) (string, error)

CapacityTypeToSDK is used to convert a CapacityType to the AWS SDK capacity type value.

func ELBTagsToMap

func ELBTagsToMap(src []*elb.Tag) infrav1.Tags

ELBTagsToMap converts a []*elb.Tag into a infrav1.Tags.

func FromAWSStringSlice added in v0.7.0

func FromAWSStringSlice(from []*string) []string

FromAWSStringSlice will converts an AWS string pointer slice.

func MapPtrToMap added in v0.6.0

func MapPtrToMap(src map[string]*string) infrav1.Tags

MapPtrToMap converts a [string]*string into a infrav1.Tags.

func MapToELBTags

func MapToELBTags(src infrav1.Tags) []*elb.Tag

MapToELBTags converts a infrav1.Tags to a []*elb.Tag.

func MapToSSMTags added in v0.6.1

func MapToSSMTags(src infrav1.Tags) []*ssm.Tag

MapToSSMTags converts a infrav1.Tags to a []*ssm.Tag.

func MapToSecretsManagerTags added in v0.4.9

func MapToSecretsManagerTags(src infrav1.Tags) []*secretsmanager.Tag

MapToSecretsManagerTags converts a infrav1.Tags to a []*secretsmanager.Tag.

func MapToTags

func MapToTags(src infrav1.Tags) []*ec2.Tag

MapToTags converts a infrav1.Tags to a []*ec2.Tag.

func NodegroupUpdateconfigFromSDK added in v1.4.0

func NodegroupUpdateconfigFromSDK(ngUpdateConfig *eks.NodegroupUpdateConfig) *expinfrav1.UpdateConfig

NodegroupUpdateconfigFromSDK is used to convert a AWS SDK NodegroupUpdateConfig to a CAPA UpdateConfig.

func NodegroupUpdateconfigToSDK added in v1.4.0

func NodegroupUpdateconfigToSDK(updateConfig *expinfrav1.UpdateConfig) *eks.NodegroupUpdateConfig

NodegroupUpdateconfigToSDK is used to convert a CAPA UpdateConfig to AWS SDK NodegroupUpdateConfig.

func TagsToMap

func TagsToMap(src []*ec2.Tag) infrav1.Tags

TagsToMap converts a []*ec2.Tag into a infrav1.Tags.

func TaintEffectFromSDK added in v0.6.7

func TaintEffectFromSDK(effect string) (expinfrav1.TaintEffect, error)

TaintEffectFromSDK is used to convert a AWS SDK taint effect value to a TaintEffect.

func TaintEffectToSDK added in v0.6.7

func TaintEffectToSDK(effect expinfrav1.TaintEffect) (string, error)

TaintEffectToSDK is used to convert a TaintEffect to the AWS SDK taint effect value.

func TaintToSDK added in v0.6.7

func TaintToSDK(taint expinfrav1.Taint) (*eks.Taint, error)

TaintToSDK is used to a CAPA Taint to AWS SDK taint.

func TaintsFromSDK added in v0.6.7

func TaintsFromSDK(taints []*eks.Taint) (expinfrav1.Taints, error)

TaintsFromSDK is used to convert an array of AWS SDK taints to CAPA Taints.

func TaintsToSDK added in v0.6.7

func TaintsToSDK(taints expinfrav1.Taints) ([]*eks.Taint, error)

TaintsToSDK is used to convert an array of CAPA Taints to AWS SDK taints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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