Documentation ¶
Overview ¶
Provides cleanup tools for orphaned ports, unit files, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogInfo *log.Logger LogError *log.Logger )
Functions ¶
func AddCleaner ¶
func AddCleaner(cleanup Cleaner)
func Clean ¶
func Clean(ctx *CleanerContext)
Types ¶
type Cleaner ¶
type Cleaner interface {
Clean(context *CleanerContext)
}
type CleanerContext ¶
type FailureCleanup ¶
type FailureCleanup struct {
// contains filtered or unexported fields
}
func (*FailureCleanup) Clean ¶
func (r *FailureCleanup) Clean(ctx *CleanerContext)
Remove any geard managed container with certain criteria from runtime * exit code non-zero and not running * older than retentionAge * name does not have -data suffix
type HomeCleanup ¶
type HomeCleanup struct {
// contains filtered or unexported fields
}
func (*HomeCleanup) Clean ¶
func (r *HomeCleanup) Clean(ctx *CleanerContext)
Remove any orphaned container home directories
type PortsCleanup ¶
type PortsCleanup struct {
// contains filtered or unexported fields
}
func (*PortsCleanup) Clean ¶
func (r *PortsCleanup) Clean(ctx *CleanerContext)
Remove port allocations that don't point to systemd definition files.
type UnitFilesCleanup ¶
type UnitFilesCleanup struct {
// contains filtered or unexported fields
}
func (*UnitFilesCleanup) Clean ¶
func (r *UnitFilesCleanup) Clean(ctx *CleanerContext)
Removes unused definition files by checking what definition files are actually in use in the service file.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.