cron

package
v1.0.0-develop.21 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToAWS

func ConvertToAWS(schedule string) (string, error)

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

func RateToCron(rate string) (string, error)

RateToCron - Converts a valid rate expression into a simple crontab expression

Types

This section is empty.

Jump to

Keyboard shortcuts

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