dynamodbcmd

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 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var GetConfigDataCmd = &cobra.Command{
	Use:   "getConfigData",
	Short: "Config data of dynamodb",
	Long:  `Config data of dynamodb`,

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

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)

		if err != nil {
			cmd.Help()
			return
		}

		if authFlag {
			table, _ := cmd.Flags().GetString("table")
			if table != "" {
				GetDynamoDbTableDetail(table, *clientAuth)
			} else {
				log.Fatalln("table name not provided. program exit")
			}
		}

	},
}

getConfigDataCmd represents the getConfigData command

Functions

func GetDynamoDbTableDetail

func GetDynamoDbTableDetail(table string, auth client.Auth) (*dynamodb.DescribeTableOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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