util

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package util represent few common functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

GenerateUUID generate v4 UUID

func GetAWSResourceTagByARN

func GetAWSResourceTagByARN(ctx context.Context, resourceTaggingService ResourceTaggingServiceClient, arn string) (map[string]string, error)

GetAWSResourceTagByARN provides tags for any resource from ARN

func RetryWithExponentialBackoff

func RetryWithExponentialBackoff(fn func() error, maxRetries int, initialBackoffSeconds int) error

RetryWithExponentialBackoff retries a function with exponential backoff in case of errors

Types

type ResourceTaggingServiceClient

type ResourceTaggingServiceClient interface {
	GetResources(context.Context, *resourcegroupstaggingapi.GetResourcesInput, ...func(*resourcegroupstaggingapi.Options)) (*resourcegroupstaggingapi.GetResourcesOutput, error)
}

ResourceTaggingServiceClient construct resource tagging service

Jump to

Keyboard shortcuts

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