Documentation
¶
Overview ¶
Package cron defines the service's cron job.
Index ¶
Constants ¶
View Source
const TTL = time.Hour
TTL is the time before a config expires.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx context.Context, r *regulator.RegulatorOptions) error
Cleanup flow rolls back excluded DUTs from Cloudbots to Drone. Excluded DUTs are determined by the config migration file.
func Migrate ¶
func Migrate(ctx context.Context, r *regulator.RegulatorOptions, l *LastSeenConfig) error
Migrate flow migrates and rolls back DUTs based on a config migration file.
Types ¶
type LastSeenConfig ¶
LastSeenConfig is a simple cache to avoid unnecessary cron runs.
func (*LastSeenConfig) IsExpired ¶
func (l *LastSeenConfig) IsExpired() bool
func (*LastSeenConfig) MarkAsSeen ¶
func (l *LastSeenConfig) MarkAsSeen(digest []byte)
func (*LastSeenConfig) WasSeen ¶
func (l *LastSeenConfig) WasSeen(digest []byte) bool
Click to show internal directories.
Click to hide internal directories.