Documentation
¶
Index ¶
- Constants
- Variables
- func NewContainerJob(svc *Service) *containerJob
- func NewSoftRemoveJob(svc *Service) *softRemoveJob
- type Input
- type Kind
- type Service
- func (s *Service) GarbageCollectContainer(ctx context.Context, retentionTime time.Duration) (*types.ArtifactGarbageReportRes, error)
- func (s *Service) GarbageCollectSoftRemove(ctx context.Context, retentionTime time.Duration) (*types.ArtifactGarbageReportRes, error)
- func (s *Service) StatisticContainer(ctx context.Context, retentionTime time.Duration) (*types.ArtifactStatisticReport, error)
- func (s *Service) StatisticExcludeContainer(ctx context.Context, retentionTime time.Duration) (*types.ArtifactStatisticReport, error)
- func (s *Service) Trigger(ctx context.Context, input *Input) error
Constants ¶
View Source
const ( JobTypeArtifactContainerGC = "gitfox:cleanup:artifact-container-garbage-collector" JobMaxDurationDArtifactContainerGC = time.Minute * 15 JobDefaultArtifactContainerRetentionTime = 0 )
View Source
const ( JobTypeArtifactHardRemove = "gitfox:cleanup:artifact-soft-remove" JobMaxDurationDArtifactSoftRemove = time.Minute * 5 )
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideArtifactSweepSvc, )
Functions ¶
func NewContainerJob ¶
func NewContainerJob(svc *Service) *containerJob
func NewSoftRemoveJob ¶
func NewSoftRemoveJob(svc *Service) *softRemoveJob
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( tx dbtx.Transactor, artStore store.ArtifactStore, fileStore storage.ContentStorage, settings *settings.Service, scheduler *job.Scheduler, sseStreamer sse.Streamer, ) *Service
func ProvideArtifactSweepSvc ¶
func (*Service) GarbageCollectContainer ¶
func (*Service) GarbageCollectSoftRemove ¶
func (*Service) StatisticContainer ¶
func (*Service) StatisticExcludeContainer ¶
func (s *Service) StatisticExcludeContainer(ctx context.Context, retentionTime time.Duration) (*types.ArtifactStatisticReport, error)
StatisticExcludeContainer returns:
- An array of all soft-removed assets, without container format.
- An array of capacity usage for each version, excluding container format.
Click to show internal directories.
Click to hide internal directories.