Documentation
¶
Index ¶
- func EnsureDatedDestination(root string, now time.Time) (string, error)
- func PruneArtifacts(root string, now time.Time, retentionDays int, preserveFirstOfMonth bool) error
- func ShouldDeleteArtifact(modTime, now time.Time, retentionDays int, preserveFirstOfMonth bool) bool
- func SortComponents(specs []ComponentSpec)
- func ValidateComponents(specs []ComponentSpec) error
- type ComponentSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDatedDestination ¶
func PruneArtifacts ¶
func ShouldDeleteArtifact ¶
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)
Click to show internal directories.
Click to hide internal directories.