lambdacmd

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var GetConfigDataCmd = &cobra.Command{
	Use:   "getConfigData",
	Short: "lambda configuration",
	Long:  `get configuration of lambda function`,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		function, _ := cmd.Flags().GetString("function")

		if authFlag {
			controllers.LambdaDetails(function, *clientAuth)
		}
	},
}

GetConfigDataCmd represents the getConfigData command

View Source
var GetConfigWithTagsCmd = &cobra.Command{
	Use:   "getConfigWithTags",
	Short: "lambda configuration with tags",
	Long:  `lambda configuration with tags`,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		function, _ := cmd.Flags().GetString("function")

		if authFlag {
			controllers.LambdaFunctionWithTagsController(function, *clientAuth)
		}
	},
}

GetConfigWithTagsCmd represents the getConfigWithTags command

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

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		function, _ := cmd.Flags().GetString("function")

		if authFlag {
			controllers.LambdaDetailsErrorController(function, *clientAuth)

		}

	},
}

getConfigDataCmd represents the getConfigData command

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

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		function, _ := cmd.Flags().GetString("function")
		startTime, _ := cmd.Flags().GetString("startTime")
		endTime, _ := cmd.Flags().GetString("endTime")

		if authFlag {
			controllers.GetLambadaLatencyTimeController(function, startTime, endTime, *clientAuth)
		}

	},
}

getConfigDataCmd represents the getConfigData command

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

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		function, _ := cmd.Flags().GetString("function")

		if authFlag {
			controllers.LambdaGetNumberOfErrorController(function, *clientAuth)

		}

	},
}

getConfigDataCmd represents the getConfigData command

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

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}

		if authFlag {
			controllers.LambdaGetTotalNumberOfLambda(*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