global

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalGCConfig

type GlobalGCConfig struct {
	DryRun bool
	Cache  bool
}

type GlobalGCProcessor

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

func NewGlobalGCProcessor

func NewGlobalGCProcessor(config *GlobalGCConfig, appConfig *models.AppConfig, db *gorm.DB) *GlobalGCProcessor

func (*GlobalGCProcessor) Execute

type GlobalGCResult

type GlobalGCResult struct {
	StaleDBRecords   []StaleDBRecord `json:"stale_db_records"`
	OrphanedCaches   []OrphanedCache `json:"orphaned_caches,omitempty"`
	DBRecordsRemoved int             `json:"db_records_removed"`
	CacheDirsRemoved int             `json:"cache_dirs_removed,omitempty"`
	DryRun           bool            `json:"dry_run"`
}

type GlobalListConfig

type GlobalListConfig struct{}

type GlobalListProcessor

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

func NewGlobalListProcessor

func NewGlobalListProcessor(db *gorm.DB) *GlobalListProcessor

func (*GlobalListProcessor) Execute

type GlobalListResult

type GlobalListResult struct {
	Projects []GlobalProjectItem `json:"projects"`
	Total    int                 `json:"total_projects"`
}

type GlobalProjectItem

type GlobalProjectItem struct {
	ProjectDir string           `json:"project_dir"`
	Exists     bool             `json:"exists"`
	RepoCount  int              `json:"repo_count"`
	Repos      []GlobalRepoItem `json:"repos,omitempty"`
}

type GlobalRemoveConfig

type GlobalRemoveConfig struct {
	ProjectDir string
	RepoName   string
	All        bool
	Purge      bool
	Yes        bool
}

type GlobalRemoveProcessor

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

func NewGlobalRemoveProcessor

func NewGlobalRemoveProcessor(config *GlobalRemoveConfig, appConfig *models.AppConfig, db *gorm.DB) *GlobalRemoveProcessor

func (*GlobalRemoveProcessor) Execute

type GlobalRemoveResult

type GlobalRemoveResult struct {
	RemovedCount int            `json:"removed_count"`
	Details      []RemoveDetail `json:"details,omitempty"`
}

type GlobalRepoItem

type GlobalRepoItem struct {
	Name    string `json:"name"`
	Type    string `json:"type"`
	RefName string `json:"ref_name"`
}

type GlobalStatsConfig

type GlobalStatsConfig struct{}

type GlobalStatsProcessor

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

func NewGlobalStatsProcessor

func NewGlobalStatsProcessor(appConfig *models.AppConfig, db *gorm.DB) *GlobalStatsProcessor

func (*GlobalStatsProcessor) Execute

type GlobalStatsResult

type GlobalStatsResult struct {
	Projects struct {
		Total    int `json:"total"`
		Existing int `json:"existing"`
		Deleted  int `json:"deleted"`
	} `json:"projects"`
	Repos struct {
		TotalCached int `json:"total_cached"`
	} `json:"repos"`
	CacheSize int64 `json:"cache_size_bytes"`
	WikiSize  int64 `json:"wiki_size_bytes"`
	DBSize    int64 `json:"db_size_bytes"`
}

type OrphanedCache

type OrphanedCache struct {
	Path string `json:"path"`
}

type RemoveDetail

type RemoveDetail struct {
	ProjectDir string `json:"project_dir"`
	RepoName   string `json:"repo_name"`
}

type StaleDBRecord

type StaleDBRecord struct {
	ProjectDir string `json:"project_dir"`
	RepoCount  int    `json:"repo_count"`
}

Jump to

Keyboard shortcuts

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