aws

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterName

func ClusterName(ctx context.Context, awsCfg aws.Config, cliFlag string) (string, error)

func ConfirmNodegroupSelection

func ConfirmNodegroupSelection(matches []string, pattern string) ([]string, error)

confirmNodegroupSelection prompts user to confirm when multiple nodegroups match. Returns the selected nodegroups or error if user cancels.

func CurrentAmiID

func CurrentAmiID(ctx context.Context, ng *types.Nodegroup, ec2Client *ec2.Client, autoscalingClient *autoscaling.Client) string

func FormatAWSError added in v0.1.8

func FormatAWSError(err error, operation string) error

FormatAWSError provides user-friendly error messages for AWS errors

func IsCredentialError added in v0.1.8

func IsCredentialError(err error) bool

IsCredentialError checks if the error is related to AWS credentials

func IsNetworkError added in v0.1.8

func IsNetworkError(err error) bool

IsNetworkError checks if the error is network-related

func LatestAmiID

func LatestAmiID(ctx context.Context, ssmClient *ssm.Client, k8sVersion string) string

func MatchingClusters

func MatchingClusters(clusters []string, pattern string) []string

MatchingClusters returns cluster names that contain the given pattern. If pattern is empty, returns all clusters.

func MatchingNodegroups

func MatchingNodegroups(nodegroups []string, pattern string) []string

matchingNodegroups returns nodegroup names that contain the given pattern. If pattern is empty, returns all nodegroups.

func Nodegroups

func Nodegroups(ctx context.Context, awsCfg aws.Config, clusterName string) ([]refreshTypes.NodegroupInfo, error)

func PrintCredentialHelp added in v0.1.8

func PrintCredentialHelp()

PrintCredentialHelp displays helpful credential setup information

func ValidateAWSCredentials added in v0.1.8

func ValidateAWSCredentials(ctx context.Context, awsCfg aws.Config) error

ValidateAWSCredentials performs a basic validation of AWS credentials

Types

This section is empty.

Jump to

Keyboard shortcuts

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