cleanup

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// ClientBlocklistDuration is the duration (in seconds) for which the client IP will be blocklisted
	ClientBlocklistDuration = "1200"
)

Variables

This section is empty.

Functions

func BlockPoolCleanup added in v1.15.5

func BlockPoolCleanup(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, poolName string) error

func CancelPendingClones added in v1.14.1

func CancelPendingClones(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, snapshots cephclient.SubVolumeSnapshots, fsName, subvol, svg string) error

func CleanUpOMAPDetails added in v1.14.1

func CleanUpOMAPDetails(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, objName, poolName, namespace string) error

func DeleteSubVolumeSnapshots added in v1.14.1

func DeleteSubVolumeSnapshots(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, snapshots cephclient.SubVolumeSnapshots, fsName, subvol, svg string) error

func RadosNamespaceCleanup added in v1.14.1

func RadosNamespaceCleanup(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, poolName, radosNamespace string) error

func StartHostPathCleanup

func StartHostPathCleanup(namespaceDir, dataDirHostPath, monSecret string)

StartHostPathCleanup is the main entrypoint function to clean up dataDirHostPath and monitor store

func SubVolumeGroupCleanup added in v1.14.1

func SubVolumeGroupCleanup(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, fsName, svg, poolName, csiNamespace string) error

Types

type DiskSanitizer

type DiskSanitizer struct {
	// contains filtered or unexported fields
}

DiskSanitizer is a simple struct to hold the context to execute the commands

func NewDiskSanitizer

func NewDiskSanitizer(context *clusterd.Context, clusterInfo *client.ClusterInfo, sanitizeDisksSpec *cephv1.SanitizeDisksSpec) *DiskSanitizer

NewDiskSanitizer is a function that returns a fully filled DiskSanitizer object

func (*DiskSanitizer) SanitizeLVMDisk added in v1.12.3

func (s *DiskSanitizer) SanitizeLVMDisk(osdLVMList []oposd.OSDInfo)

func (*DiskSanitizer) SanitizeRawDisk added in v1.12.3

func (s *DiskSanitizer) SanitizeRawDisk(osdRawList []oposd.OSDInfo)

func (*DiskSanitizer) StartSanitizeDisks added in v1.4.0

func (s *DiskSanitizer) StartSanitizeDisks()

StartSanitizeDisks is the main entrypoint of the cleanup package

type ShredCommand added in v1.17.6

type ShredCommand struct {
	// contains filtered or unexported fields
}

ShredCommand is a struct that defines a shred command with its arguments

Jump to

Keyboard shortcuts

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