command

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsxEksClusterCmd = &cobra.Command{
	Use:   "getClusterList",
	Short: "getClusterList command gets cluster list",
	Long:  `getClusterList command gets cluster list of an AWS account`,

	Run: func(cmd *cobra.Command, args []string) {

		authFlag, clientAuth, err := authenticate.CommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		if authFlag {
			GetClusterList(*clientAuth)
		} else {
			cmd.Help()
			return
		}
	},
}

Functions

func Execute

func Execute()

func GetClusterList

func GetClusterList(auth client.Auth) ([]*eks.DescribeClusterOutput, error)

json.Unmarshal

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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