cmd

package
v0.0.0-...-a6be7af Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2023 Afreen Khan afreen.khan@synectiks.com

Index

Constants

This section is empty.

Variables

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

	Run: func(cmd *cobra.Command, args []string) {
		log.Println("Command elbv2 started")

		authFlag := authenticator.RootCommandAuth(cmd)

		marker := cmd.Flags().Lookup("marker").Value.String()
		all, _ := cmd.Flags().GetBool("all")

		if authFlag {

			if all {
				controllers.AllElbv2ListController(authenticator.ClientAuth)
			} else {
				controllers.Elbv2ListController(marker, authenticator.ClientAuth)
			}
		}

	},
}

Functions

func Execute

func Execute()

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