CONFIG_SERVICE

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsxDiscoveredResourceCountsCmd = &cobra.Command{
	Use:   "getDiscoveredResourceCounts",
	Short: "getDiscoveredResourceCounts command gets resource counts",
	Long:  `getDiscoveredResourceCounts command gets resource counts`,

	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("executing command getDiscoveredResourceCounts")
		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 {
			resp, err := DiscoveredResourceCounts(clientAuth, nil)
			if err != nil {
				log.Println("error getting getDiscoveredResourceCounts: ", err)
				return
			}
			fmt.Println(resp)
		} else {
			cmd.Help()
			return
		}
	},
}

Functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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