utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSummaryStats

func CalcSummaryStats(vals []float64) (summaryStatistics, error)

CalcSummaryStats calculates descriptive statistics without external dependencies

func FunctionExists

func FunctionExists(ctx context.Context, client sdkinterfaces.LambdaClient, functionName string) (bool, error)

FunctionExists checks if an AWS Lambda function with the given name exists in the AWS account. Returns true if the function exists, false if not found, or an error on other failures.

func QualifierExists

func QualifierExists(ctx context.Context, client sdkinterfaces.LambdaClient, functionName, qualifier string) (bool, error)

QualifierExists checks if a specific qualifier (version) exists for an AWS Lambda function. Aliases are not supported. Returns true if the qualifier exists, false if not found, or an error on other failures.

func SumMetricValues

func SumMetricValues(results []cwTypes.MetricDataResult) (float64, error)

func ToLoadOptions

func ToLoadOptions(opts sdktypes.ConfigOptions) ([]func(*config.LoadOptions) error, error)

ToLoadOptions converts ConfigOptions into AWS SDK config.LoadOptions functional options. This abstraction should simplify configuration for users.

Types

This section is empty.

Jump to

Keyboard shortcuts

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