Documentation
¶
Index ¶
- type Cleaner
- func (c *Cleaner) CleanBuildCache() error
- func (c *Cleaner) CleanDanglingImages() error
- func (c *Cleaner) CleanOldImages(keepLatest int) error
- func (c *Cleaner) CleanStoppedContainers() error
- func (c *Cleaner) CleanUnusedVolumes() error
- func (c *Cleaner) FullCleanup(keepImages int) (*CleanupResult, error)
- func (c *Cleaner) GetDiskUsage() (string, error)
- func (c *Cleaner) GetDockerDiskUsage() (string, error)
- func (c *Cleaner) RotateLogs() error
- func (c *Cleaner) SecureLogPermissions() error
- type CleanupResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner handles cleanup operations on the server
func NewCleaner ¶
NewCleaner creates a new cleaner
func (*Cleaner) CleanBuildCache ¶
CleanBuildCache removes Docker build cache
func (*Cleaner) CleanDanglingImages ¶
CleanDanglingImages removes dangling Docker images (not tagged)
func (*Cleaner) CleanOldImages ¶
CleanOldImages removes old Docker images for this project Keeps the latest N images (default 3)
func (*Cleaner) CleanStoppedContainers ¶
CleanStoppedContainers removes stopped containers for this project
func (*Cleaner) CleanUnusedVolumes ¶
CleanUnusedVolumes removes unused Docker volumes
func (*Cleaner) FullCleanup ¶
func (c *Cleaner) FullCleanup(keepImages int) (*CleanupResult, error)
FullCleanup performs all cleanup operations
func (*Cleaner) GetDiskUsage ¶
GetDiskUsage returns disk usage information
func (*Cleaner) GetDockerDiskUsage ¶
GetDockerDiskUsage returns Docker disk usage
func (*Cleaner) RotateLogs ¶
RotateLogs manually triggers log rotation (in addition to automatic)
func (*Cleaner) SecureLogPermissions ¶
SecureLogPermissions ensures log files have proper permissions