health

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetHealth added in v0.4.1

type AssetHealth struct {
	Total   int `json:"total"`
	Healthy int `json:"healthy"`
	Failed  int `json:"failed"`
}

type DiskHealth added in v0.3.0

type DiskHealth struct {
	FreePercent    int    `json:"free_percent"`
	MinimumPercent int    `json:"minimum_percent"`
	Free           string `json:"free"`
}

type HealthReport

type HealthReport struct {
	GeneratedAt string `json:"generated_at"`

	Status string `json:"status"`

	Repositories AssetHealth `json:"repositories"`
	Gists        AssetHealth `json:"gists"`

	Sync      SyncHealth      `json:"sync"`
	Snapshots SnapshotHealth  `json:"snapshots"`
	Disk      DiskHealth      `json:"disk"`
	Retention RetentionHealth `json:"retention"`

	Warnings        []string `json:"warnings,omitempty"`
	Recommendations []string `json:"recommendations,omitempty"`
}

func Generate

func Generate(cfg *config.Config) (*HealthReport, error)

type RetentionHealth added in v0.3.0

type RetentionHealth struct {
	Enabled bool `json:"enabled"`
	Keep    int  `json:"keep"`
}

type SnapshotHealth added in v0.3.0

type SnapshotHealth struct {
	Count  int    `json:"count"`
	Size   string `json:"size"`
	Latest string `json:"latest,omitempty"`
}

type SyncHealth added in v0.3.0

type SyncHealth struct {
	StartedAt   string `json:"started_at,omitempty"`
	CompletedAt string `json:"completed_at,omitempty"`
}

Jump to

Keyboard shortcuts

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