LB

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 AwsxLbListCmd = &cobra.Command{
	Use:   "getLbList",
	Short: "getLbList command gets list of load-balancers",
	Long:  `getLbList command gets list of load-balancers`,

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

Functions

func ListLbInstances

func ListLbInstances(clientAuth *model.Auth, client *elbv2.ELBV2) (*elbv2.DescribeLoadBalancersOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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