schedule

package
v0.0.0-...-7a0a1c0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DELETE_BUCKET = "DeleteBucket"

Variables

This section is empty.

Functions

func CheckIf24HoursPassed

func CheckIf24HoursPassed(passed time.Time) bool

CheckIf24HoursPassed Checks if the current time is before 24 hours after the time 's'.

func ExecSchedules

func ExecSchedules(factory *cmdutil.Factory)

func NewSchedule

func NewSchedule(name string, kind string) error

func TriggerDeleteBucket

func TriggerDeleteBucket(f *cmdutil.Factory, name string) error

Types

type Schedule

type Schedule struct {
	Name string    `json:"name"`
	Time time.Time `json:"time"` // schedule creation time
	Kind string    `json:"kind"`
}

Jump to

Keyboard shortcuts

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