command

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsxKmsCmd = &cobra.Command{
	Use:   "kms",
	Short: "get kms Details command gets resource counts",
	Long:  `get kms Details command gets resource counts details of an AWS account`,

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

		log.Println("Command kms started")

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

AwsxKmsCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute runs the command Execute adds all child command to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ListKeys

func ListKeys(auth client.Auth) (*kms.ListKeysOutput, error)

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