aws

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 14 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 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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