Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConfiguration = errors.New("invalid storage configuration")
Functions ¶
This section is empty.
Types ¶
type AssetUsage ¶
type Category ¶
type Category string
const ( CategoryDatabase Category = "database" CategoryGitObjects Category = "git_objects" CategoryLFSAssets Category = "lfs_assets" CategoryArtifacts Category = "artifacts" CategoryPackages Category = "packages" CategoryBackups Category = "backups" CategoryAttachments Category = "attachments" CategoryOther Category = "other_volume_usage" )
type CleanupAction ¶
type CleanupPlan ¶
type InventoryRoot ¶
type LiveOptions ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewLiveService ¶
func NewLiveService(options LiveOptions) (*Service, error)
func NewService ¶
func (*Service) CleanupPlan ¶
func (s *Service) CleanupPlan() CleanupPlan
type Snapshot ¶
type Snapshot struct {
Source string `json:"source"`
VolumePath string `json:"volume_path,omitempty"`
CapacityBytes int64 `json:"capacity_bytes"`
UsedBytes int64 `json:"used_bytes"`
AvailableBytes int64 `json:"available_bytes"`
ReservedBytes int64 `json:"reserved_bytes"`
WarningFreeBytes int64 `json:"warning_free_bytes"`
ProtectedFreeBytes int64 `json:"protected_free_bytes"`
UsageRatio float64 `json:"usage_ratio"`
Warning bool `json:"warning"`
WriteProtected bool `json:"write_protected"`
MeasurementError string `json:"measurement_error,omitempty"`
InventoryError string `json:"inventory_error,omitempty"`
InventoryTruncated bool `json:"inventory_truncated"`
MeasuredAt time.Time `json:"measured_at"`
Usage []Usage `json:"usage"`
GameAssets []AssetUsage `json:"game_assets"`
}
type VolumeStats ¶
Click to show internal directories.
Click to hide internal directories.