loadbalancercmd

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: 4 Imported by: 0

Documentation

Overview

Copyright © 2023 AFREEN KHAN <afreen.khan@synectiks.com>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

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

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var GetConfigDataCmd = &cobra.Command{
	Use:   "getConfigData",
	Short: "A brief description of your command",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag := authenticator.ChildCommandAuth(cmd)

		lbArns, _ := cmd.Flags().GetString("lbArns")

		if authFlag {
			controllers.Elbv2Details(lbArns, authenticator.ClientAuth)
		}
	},
}

getConfigDataCmd represents the getConfigData command

View Source
var GetDetailOfErrorCmd = &cobra.Command{
	Use:   "errorDetail",
	Short: "to get details of error in elbv2",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag := authenticator.ChildCommandAuth(cmd)
		lbArns, _ := cmd.Flags().GetString("lbArns")

		if authFlag {
			controllers.Elbv2DetailsErrorController(lbArns, authenticator.ClientAuth)

		}

	},
}

getConfigDataCmd represents the getConfigData command

View Source
var GetLatencyCmd = &cobra.Command{
	Use:   "latency",
	Short: "to get latency of elbv2 lbArns",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag := authenticator.ChildCommandAuth(cmd)
		lbArns, _ := cmd.Flags().GetString("lbArns")
		startTime, _ := cmd.Flags().GetString("startTime")
		endTime, _ := cmd.Flags().GetString("endTime")

		if authFlag {
			controllers.GetElbv2LatencyTimeController(lbArns, startTime, endTime, authenticator.ClientAuth)
		}

	},
}

GetLatencyCmd represents the GetLatencyCmd command

View Source
var GetNumberOfErrorCmd = &cobra.Command{
	Use:   "errorCount",
	Short: "to total number of errors",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag := authenticator.ChildCommandAuth(cmd)
		lbArns, _ := cmd.Flags().GetString("lbArns")

		if authFlag {
			controllers.Elbv2GetNumberOfErrorController(lbArns, authenticator.ClientAuth)

		}

	},
}

GetNumberOfErrorCmd represents the GetNumberOfErrorCmd command

View Source
var GetTotalNumberOfElbv2Cmd = &cobra.Command{
	Use:   "totalCount",
	Short: "gets total number of lambdas present in aws account",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag := authenticator.ChildCommandAuth(cmd)

		if authFlag {
			controllers.Elbv2TotalNumberOfLb(authenticator.ClientAuth)
		}
	},
}

GetTotalNumberOfLambdaCmd represents the number command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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