Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintenanceScheduler ¶
type MaintenanceScheduler interface {
// Start begins the maintenance scheduler
Start() error
// Stop stops the maintenance scheduler
Stop()
// UpdateSchedule updates the maintenance schedule
UpdateSchedule(schedule string, enabled bool) error
// RunManual runs maintenance manually (outside of schedule)
RunManual() error
}
MaintenanceScheduler defines the interface for maintenance scheduling.
type MaintenanceService ¶
type MaintenanceService interface {
// RunMaintenance executes database maintenance operations
RunMaintenance(ctx context.Context) error
// GetMaintenanceConfig returns the current maintenance configuration
GetMaintenanceConfig() *model.MaintenanceConfig
// UpdateMaintenanceConfig updates the maintenance configuration
UpdateMaintenanceConfig(config *model.MaintenanceConfig) error
// GetMaintenanceStats returns maintenance statistics
GetMaintenanceStats() (*model.MaintenanceStats, error)
}
MaintenanceService defines the interface for database maintenance operations.
type Manager ¶
type Manager interface {
SignaturePublicKey() crypto.PublicKey
SecretServiceFromRepo(repo *model.Repo) secret.Service
SecretService() secret.Service
RegistryServiceFromRepo(repo *model.Repo) registry.Service
RegistryService() registry.Service
ConfigServiceFromRepo(repo *model.Repo) config.Service
EnvironmentService() environment.Service
ForgeFromRepo(repo *model.Repo) (forge.Forge, error)
ForgeFromUser(user *model.User) (forge.Forge, error)
ForgeByID(forgeID int64) (forge.Forge, error)
}
func NewManager ¶
Click to show internal directories.
Click to hide internal directories.