cron

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDatedDestination

func EnsureDatedDestination(root string, now time.Time) (string, error)

func PruneArtifacts

func PruneArtifacts(root string, now time.Time, retentionDays int, preserveFirstOfMonth bool) error

func ShouldDeleteArtifact

func ShouldDeleteArtifact(modTime, now time.Time, retentionDays int, preserveFirstOfMonth bool) bool

func SortComponents

func SortComponents(specs []ComponentSpec)

func ValidateComponents

func ValidateComponents(specs []ComponentSpec) error

Types

type ComponentSpec

type ComponentSpec struct {
	Name        string `yaml:"name"`
	Plugin      string `yaml:"plugin"`
	Description string `yaml:"description,omitempty"`
	Filename    string `yaml:"filename"`
}

func FindComponent

func FindComponent(specs []ComponentSpec, name string) (ComponentSpec, bool)

Jump to

Keyboard shortcuts

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