Documentation ¶
Index ¶
- Constants
- Variables
- func DateTimeFormat(inputTime time.Time) *strfmt.DateTime
- 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) *strfmt.DateTime
- func TimeNowRFC3339() time.Time
- func UnixTimeToDateTime(epochTimeStamp int64) *strfmt.DateTime
- 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 DateTimeFormat ¶
DateTimeFormat converts time.Time to strfmt.DateTime.
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 strfmt.DateTime struct
func TimeNowRFC3339 ¶
TimeNowRFC3339 returns the current time in RFC3339 format.
func UnixTimeToDateTime ¶
UnixTimeToDateTime parses an Int64 representing an epoch timestamp to a strfmt.DateTime struct
Types ¶
type ParsedResourceID ¶
func ParseResourceID ¶
func ParseResourceID(resourceID string) *ParsedResourceID
Click to show internal directories.
Click to hide internal directories.