Documentation
¶
Index ¶
- Constants
- func New(conf *Config, clients s3client.Service, versionSvc meta.VersionService, ...) *svc
- type Config
- type ConsistencyCheckCtrl
- func (r *ConsistencyCheckCtrl) HandleConsistencyCheck(ctx context.Context, t *asynq.Task) error
- func (r *ConsistencyCheckCtrl) HandleConsistencyCheckList(ctx context.Context, t *asynq.Task) error
- func (r *ConsistencyCheckCtrl) HandleConsistencyCheckListVersions(ctx context.Context, t *asynq.Task) (err error)
- type ConsistencyCheckSvc
- func (r *ConsistencyCheckSvc) AccountObjectVersions(ctx context.Context, checkID entity.ConsistencyCheckID, user string, ...) error
- func (r *ConsistencyCheckSvc) DeleteConsistencyCheck(ctx context.Context, id entity.ConsistencyCheckID) error
- func (r *ConsistencyCheckSvc) GetConsistencyCheckList(ctx context.Context) ([]entity.ConsistencyCheckStatus, error)
- func (r *ConsistencyCheckSvc) GetConsistencyCheckReportEntries(ctx context.Context, id entity.ConsistencyCheckID, cursor uint64, ...) (entity.ConsistencyCheckReportEntryPage, error)
- func (r *ConsistencyCheckSvc) GetConsistencyCheckStatus(ctx context.Context, id entity.ConsistencyCheckID) (entity.ConsistencyCheckStatus, error)
- func (r *ConsistencyCheckSvc) ObjectTasks(ctx context.Context, checkID entity.ConsistencyCheckID, user string, ...) iter.Seq2[ObjectTask, error]
- func (r *ConsistencyCheckSvc) RegisterConsistencyCheck(ctx context.Context, id entity.ConsistencyCheckID, ...) error
- func (r *ConsistencyCheckSvc) ShouldCheckVersions(ctx context.Context, user string, locations []entity.ConsistencyCheckLocation) (bool, error)
- type ObjectTask
- type VersionedMigrationCtrl
- type VersionedMigrationSvc
Constants ¶
View Source
const (
CEmptyDirETagPlaceholder = "d"
)
View Source
const (
CMaxBufferedMoveObjectVersions = 100
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(conf *Config, clients s3client.Service, versionSvc meta.VersionService, policySvc policy.Service, storageSvc storage.Service, rc rclone.Service, queueSvc tasks.QueueService, limit ratelimit.RPM, objectLocker *store.ObjectLocker, bucketLocker *store.BucketLocker, replicationstatusLocker *store.ReplicationStatusLocker) *svc
Types ¶
type ConsistencyCheckCtrl ¶ added in v0.6.0
type ConsistencyCheckCtrl struct {
// contains filtered or unexported fields
}
func NewConsistencyCheckCtrl ¶ added in v0.6.0
func NewConsistencyCheckCtrl(svc *ConsistencyCheckSvc, queueSvc tasks.QueueService) *ConsistencyCheckCtrl
func (*ConsistencyCheckCtrl) HandleConsistencyCheck ¶ added in v0.6.0
func (*ConsistencyCheckCtrl) HandleConsistencyCheckList ¶ added in v0.6.0
func (*ConsistencyCheckCtrl) HandleConsistencyCheckListVersions ¶ added in v0.6.0
type ConsistencyCheckSvc ¶ added in v0.6.0
type ConsistencyCheckSvc struct {
// contains filtered or unexported fields
}
func NewConsistencyCheckSvc ¶ added in v0.6.0
func NewConsistencyCheckSvc(idStore *store.ConsistencyCheckIDStore, settingsStore *store.ConsistencyCheckSettingsStore, listStateStore *store.ConsistencyCheckListStateStore, setStore *store.ConsistencyCheckSetStore, copySvc rclone.CopySvc, queueSvc tasks.QueueService) *ConsistencyCheckSvc
func (*ConsistencyCheckSvc) AccountObjectVersions ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) AccountObjectVersions(ctx context.Context, checkID entity.ConsistencyCheckID, user string, location entity.ConsistencyCheckLocation, prefix string, ignoreEtags bool, ignoreSizes bool) error
func (*ConsistencyCheckSvc) DeleteConsistencyCheck ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) DeleteConsistencyCheck(ctx context.Context, id entity.ConsistencyCheckID) error
func (*ConsistencyCheckSvc) GetConsistencyCheckList ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) GetConsistencyCheckList(ctx context.Context) ([]entity.ConsistencyCheckStatus, error)
func (*ConsistencyCheckSvc) GetConsistencyCheckReportEntries ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) GetConsistencyCheckReportEntries(ctx context.Context, id entity.ConsistencyCheckID, cursor uint64, pageSize uint64) (entity.ConsistencyCheckReportEntryPage, error)
func (*ConsistencyCheckSvc) GetConsistencyCheckStatus ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) GetConsistencyCheckStatus(ctx context.Context, id entity.ConsistencyCheckID) (entity.ConsistencyCheckStatus, error)
func (*ConsistencyCheckSvc) ObjectTasks ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) ObjectTasks(ctx context.Context, checkID entity.ConsistencyCheckID, user string, location entity.ConsistencyCheckLocation, prefix string, versioned bool, ignoreEtags bool, ignoreSizes bool) iter.Seq2[ObjectTask, error]
func (*ConsistencyCheckSvc) RegisterConsistencyCheck ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) RegisterConsistencyCheck(ctx context.Context, id entity.ConsistencyCheckID, settings entity.ConsistencyCheckSettings) error
func (*ConsistencyCheckSvc) ShouldCheckVersions ¶ added in v0.6.0
func (r *ConsistencyCheckSvc) ShouldCheckVersions(ctx context.Context, user string, locations []entity.ConsistencyCheckLocation) (bool, error)
type ObjectTask ¶ added in v0.6.0
type VersionedMigrationCtrl ¶ added in v0.6.0
type VersionedMigrationCtrl struct {
// contains filtered or unexported fields
}
func NewVersionedMigrationCtrl ¶ added in v0.6.0
func NewVersionedMigrationCtrl(svc *VersionedMigrationSvc, queueSvc tasks.QueueService) *VersionedMigrationCtrl
func (*VersionedMigrationCtrl) HandleObjectVersionList ¶ added in v0.6.0
func (*VersionedMigrationCtrl) HandleVersionedObjectMigration ¶ added in v0.6.0
type VersionedMigrationSvc ¶ added in v0.6.0
type VersionedMigrationSvc struct {
// contains filtered or unexported fields
}
func NewVersionedMigrationSvc ¶ added in v0.6.0
func NewVersionedMigrationSvc(policySvc policy.Service, copySvc rclone.CopySvc, objectVersionInfoStore *store.ObjectVersionInfoStore, objectLocker *store.ObjectLocker, pauseRetryInterval time.Duration) *VersionedMigrationSvc
func (*VersionedMigrationSvc) ListVersions ¶ added in v0.6.0
func (r *VersionedMigrationSvc) ListVersions(ctx context.Context, objectID entity.VersionedObjectID, replicationID entity.BucketReplicationPolicy) error
func (*VersionedMigrationSvc) MigrateVersions ¶ added in v0.6.0
func (r *VersionedMigrationSvc) MigrateVersions(ctx context.Context, replicationID entity.BucketReplicationPolicy, prefix string) error
Click to show internal directories.
Click to hide internal directories.