Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AwsxDynamoDbListCmd = &cobra.Command{ Use: "getDynamoDbList", Short: "getDynamoDbList command gets list of dynamo-db instances of an aws account", Long: `getDynamoDbList command gets list of dynamo-db instances of an aws account`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("executing getDynamoDbList command") var authFlag, clientAuth, err = authenticate.AuthenticateCommand(cmd) if err != nil { log.Printf("error during authentication: %v\n", err) err := cmd.Help() if err != nil { return } return } if authFlag { instances, err := ListDynamoDbInstance(clientAuth, nil) if err != nil { log.Println("error getting getDynamoDbList: ", err) return } fmt.Println(instances) } }, }
View Source
var AwsxDynamodDbConfigCmd = &cobra.Command{ Use: "getDynamoDbConfig", Short: "getDynamoDbConfig command gets dynamo-db configuration", Long: `getDynamoDbConfig command gets dynamo-db configuration`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("executing getDynamoDbConfig command") var authFlag, clientAuth, err = authenticate.AuthenticateCommand(cmd) if err != nil { log.Printf("error during authentication: %v\n", err) err := cmd.Help() if err != nil { return } return } if authFlag { tableName, _ := cmd.Flags().GetString("tableName") if tableName == "" { log.Printf("dynamo-db table name missing") err := cmd.Help() if err != nil { return } return } instances, err := GetDynamoDbInstanceByTableName(tableName, clientAuth, nil) if err != nil { log.Println("error getting getDynamoDbConfig by table name: ", err) return } fmt.Println(instances) } }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.