Documentation
¶
Index ¶
- type GlobalGCConfig
- type GlobalGCProcessor
- type GlobalGCResult
- type GlobalListConfig
- type GlobalListProcessor
- type GlobalListResult
- type GlobalProjectItem
- type GlobalRemoveConfig
- type GlobalRemoveProcessor
- type GlobalRemoveResult
- type GlobalRepoItem
- type GlobalStatsConfig
- type GlobalStatsProcessor
- type GlobalStatsResult
- type OrphanedCache
- type RemoveDetail
- type StaleDBRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalGCConfig ¶
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 ¶
func (p *GlobalGCProcessor) Execute(ctx context.Context) (*GlobalGCResult, error)
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 ¶
func (p *GlobalListProcessor) Execute(ctx context.Context) (*GlobalListResult, error)
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 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 ¶
func (p *GlobalRemoveProcessor) Execute(ctx context.Context) (*GlobalRemoveResult, error)
type GlobalRemoveResult ¶
type GlobalRemoveResult struct {
RemovedCount int `json:"removed_count"`
Details []RemoveDetail `json:"details,omitempty"`
}
type GlobalRepoItem ¶
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 ¶
func (p *GlobalStatsProcessor) Execute(ctx context.Context) (*GlobalStatsResult, error)
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 StaleDBRecord ¶
Click to show internal directories.
Click to hide internal directories.