Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToAWS ¶
ConvertToAWS converts the Schedule string to the format required by Cloudwatch Events https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html Cron expressions must have an sixth "year" field, and must contain at least one ? (either-or) in either day-of-month or day-of-week. Day-of-week expressions are zero-indexed in Golang but one-indexed in AWS. @every cron definition strings are converted to rates. All others become cron expressions. Exception is made for strings of the form "rate( )" or "cron( )". These are accepted as-is and validated server-side by CloudFormation.
func RateToCron ¶
RateToCron - Converts a valid rate expression into a simple crontab expression
Types ¶
This section is empty.