Documentation ¶
Overview ¶
Package hk provides mechanism for registering cleanup functions which are invoked at specified intervals.
- Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
Package hk provides mechanism for registering cleanup functions which are invoked at specified intervals.
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Index ¶
Constants ¶
View Source
const ( DelOldIval = 8 * time.Minute // hk interval: cleanup old PruneActiveIval = 2 * time.Minute // hk interval: prune active OldAgeLso = time.Minute // when list-objects is considered old OldAgeLsoNotif = 10 * time.Second // notifications-wise OldAgeX = time.Hour // all other X )
View Source
const ( DayInterval = 24 * time.Hour UnregInterval = 365 * DayInterval // to unregister upon return from the callback )
View Source
const NameSuffix = ".gc" // reg name suffix
Variables ¶
View Source
var DefaultHK *housekeeper
Functions ¶
func WaitStarted ¶
func WaitStarted()
Types ¶
type CleanupFunc ¶
Click to show internal directories.
Click to hide internal directories.