Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecycleOne ¶
func RecycleOne(client RecycleBoskosClient, res *common.Resource)
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner looks for ToBeDeleted resources and mark them as Tombstone. It also releases resource hold by dynamic resources if any.
func NewCleaner ¶
func NewCleaner(cleanerCount int, client boskosClient, waitPeriod time.Duration, s cleanerStorage) *Cleaner
NewCleaner creates and initialized a new Cleaner object In: cleanerCount - Number of cleaning threads
client - boskos client waitPeriod - time to wait before a new boskos operation (acquire mostly)
Out: A Pointer to a Cleaner Object
Click to show internal directories.
Click to hide internal directories.