cleanup

package
v0.0.0-...-5f4265e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 10 Imported by: 13

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

Directories

Path Synopsis
The gear 'clean' extension.
The gear 'clean' extension.

Jump to

Keyboard shortcuts

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