Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputItem ¶
type OutputItem struct {
Source string `json:"source"`
Target string `json:"target"`
Repository string `json:"repository"`
StartTime time.Time
EndTime time.Time
Duration time.Duration
Status string `json:"status"` // Success, Failed, or Skipped
ErrorMsg string `json:"error,omitempty"`
}
OutputItem represents an item in the output
type SyncStatistics ¶
type SyncStatistics struct {
TotalImages int `json:"total_images"`
Successful int `json:"successful"`
Failed int `json:"failed"`
Skipped int `json:"skipped"`
TotalDuration time.Duration `json:"total_duration"`
AverageDuration time.Duration `json:"average_duration"`
}
SyncStatistics holds statistics about the sync operation
type Syncer ¶
type Syncer struct {
Config *config.Config
Client client.DockerClientInterface
Output []OutputItem
// contains filtered or unexported fields
}
Syncer handles the synchronization of images
func NewSyncer ¶
func NewSyncer(config *config.Config, client client.DockerClientInterface) *Syncer
NewSyncer creates a new Syncer instance
func (*Syncer) GetProcessedImageCount ¶
GetProcessedImageCount returns the number of successfully processed images
func (*Syncer) ProcessImage ¶
processImage handles the core image processing logic
func (*Syncer) ProcessImageWithRetry ¶
ProcessImageWithRetry processes a single image with retry logic
Click to show internal directories.
Click to hide internal directories.