Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages artifacts
func NewManager ¶
NewManager Initiates a artifacts manager. If artifactHomeDir not passed, the default '/var/lib/cyclone' will be used.
func (*Manager) CleanPeriodically ¶
CleanPeriodically will clean up artifacts which exceeded retention time periodically. This func will run forever unless panics, you'd better invoke it by a go-routine.
func (*Manager) GetDiskAvailablePercentage ¶
GetDiskAvailablePercentage returns available space in percentage format of the artifact home folder.
Click to show internal directories.
Click to hide internal directories.