utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger hclog.Logger

Functions

func CheckNilInterface

func CheckNilInterface(i interface{}) bool

func ConvertArnToFullname

func ConvertArnToFullname(arnString string) string

func ConvertFullnameToArn

func ConvertFullnameToArn(fullName string, service string) string

func GetConcurrency

func GetConcurrency(cfg *config.ConfigMap) int

func GetEmailAddressFromTags

func GetEmailAddressFromTags(tags []*tag.Tag, result string) string

func GetRegions

func GetRegions(cfg *config.ConfigMap) []string

func GetResourceNamesFromPolicyBindingArray

func GetResourceNamesFromPolicyBindingArray(input []model.PolicyBinding) []string

func GetTags

func GetTags(input []types.Tag) []*tag.Tag

func GetTrustUserPolicyArn

func GetTrustUserPolicyArn(resourceType, resourceId string, account string) arn.ARN

func ParseAndValidateArn

func ParseAndValidateArn(inputArn string, account *string, service *string) (string, error)

parseAndValidateArn parses the ARN and returns the resource part. Optionally, it can verify that the account and/or service match.

func RemoveEndingWildcards

func RemoveEndingWildcards(name string) string

func SetSubtract

func SetSubtract[T comparable](setA set.Set[T], setB set.Set[T]) set.Set[T]

func StripWhitespace

func StripWhitespace(query string) string

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