cleanup

package
v0.0.0-...-47d37a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

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 CleanerContext struct {
	DryRun   bool
	Repair   bool
	LogInfo  *log.Logger
	LogError *log.Logger
}

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL