cloudwatch

package
v0.0.0-...-6afa55f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2020 inovex GmbH <https://www.inovex.de>

SPDX-License-Identifier: MIT

SPDX-FileCopyrightText: 2020 inovex GmbH <https://www.inovex.de>

SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func Client

func Client(ruleName string) Scheduler

func (Scheduler) Schedule

func (client Scheduler) Schedule(t time.Time) error

Schedule creates a scheduler tick at the specified time t. It takes the year, month, day, hour and minutes fields into account. Cloudwatch will execute the worker lambda function at that time.

func (Scheduler) Unschedule

func (client Scheduler) Unschedule() error

Unschedule disables the scheduler until another future task is created. It achieves this by specifying a past date for the Cloudwatch rule.

Jump to

Keyboard shortcuts

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