command

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2023 Manoj Sharma manoj.sharma@synectiks.com

Index

Constants

This section is empty.

Variables

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

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

		log.Println("Command dynamodb started")

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

	},
}

AwsxDynamoDbCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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 GetDynamoDbTableDetails

func GetDynamoDbTableDetails(auth client.Auth) (string, error)

func GetDynamoDbTableList

func GetDynamoDbTableList(auth client.Auth) (*dynamodb.ListTablesOutput, error)

Types

type DynamodbObj added in v1.0.2

type DynamodbObj struct {
	Table interface{} `json:"table"`
	Tags  interface{} `json:"tags"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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