schedule

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(fact *Factory, cmdFactory *cmdutil.Factory, name string, kind string) error

func TriggerDeleteBucket

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

Types

type Factory

type Factory struct {
	Schedule      Schedule
	Dir           func() config.DirPath
	Join          func(elem ...string) string
	Stat          func(name string) (os.FileInfo, error)
	IsNotExist    func(err error) bool
	Marshal       func(v any) ([]byte, error)
	WriteFile     func(name string, data []byte, perm os.FileMode) error
	ReadFile      func(name string) ([]byte, error)
	Unmarshal     func(data []byte, v any) error
	MarshalIndent func(v any, prefix, indent string) ([]byte, error)
}

func InjectFactory

func InjectFactory(fact *Factory) *Factory

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