Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateResourceID(awsAccountID string, region string, schema string) string
- func LogAWSError(apiCall string, err error)
- func ParseTagSlice(slice interface{}) map[string]*string
- func ParseTimeRFC3339(timeString string) time.Time
- func Requeue(scanRequest poller.ScanMsg, delay int64) error
- func StringToDateTime(timeString string) *time.Time
- func TimeNowRFC3339() time.Time
- func UnixTimeToDateTime(epochTimeStamp int64) *time.Time
- type ParsedResourceID
Constants ¶
View Source
const MaxRequeueDelaySeconds = 900
SQS imposed maximum message delay
Variables ¶
View Source
var ( // TimeNowFunc directs to the TimeNow function. // This is intended to be overridden for testing. TimeNowFunc = TimeNowRFC3339 )
Functions ¶
func GenerateResourceID ¶
GenerateResourceID returns a formatted custom Resource ID.
func LogAWSError ¶
LogAWSError logs an AWS error to zap in a digestable format.
func ParseTagSlice ¶
ParseTagSlice takes a list of structs representing tags, and returns a map of key/value pairs
func ParseTimeRFC3339 ¶
ParseTimeRFC3339 parses a time string into a valid RFC3339 time.
func StringToDateTime ¶
StringToDateTime parses a time string into a time.Time struct
func TimeNowRFC3339 ¶
TimeNowRFC3339 returns the current time in RFC3339 format.
func UnixTimeToDateTime ¶
UnixTimeToDateTime parses an Int64 representing an epoch timestamp to a time.Time struct
Types ¶
type ParsedResourceID ¶
func ParseResourceID ¶
func ParseResourceID(resourceID string) *ParsedResourceID
Click to show internal directories.
Click to hide internal directories.