Documentation ¶
Index ¶
- type Controller
- func (ctrl Controller) CacheItemInfo(dii details.ItemInfo)
- func (ctrl Controller) ConsumeRestoreCollections(_ context.Context, _ inject.RestoreConsumerConfig, _ []data.RestoreCollection, ...) (*details.Details, *data.CollectionStats, error)
- func (ctrl *Controller) GetMetadataPaths(ctx context.Context, r kinject.RestoreProducer, ...) ([]path.RestorePaths, error)
- func (ctrl Controller) IsServiceEnabled(_ context.Context, _ path.ServiceType, _ string) (bool, error)
- func (ctrl Controller) PopulateProtectedResourceIDAndName(ctx context.Context, protectedResource string, ins idname.Cacher) (idname.Provider, error)
- func (ctrl Controller) ProduceBackupCollections(_ context.Context, _ inject.BackupProducerConfig, _ *count.Bus, _ *fault.Bus) ([]data.BackupCollection, prefixmatcher.StringSetReader, bool, error)
- func (ctrl Controller) ProduceExportCollections(_ context.Context, _ int, _ control.ExportConfig, _ []data.RestoreCollection, ...) ([]export.Collectioner, error)
- func (ctrl Controller) SetRateLimiter(ctx context.Context, service path.ServiceType, options control.Options) context.Context
- func (ctrl Controller) Wait() *data.CollectionStats
- type IDNameGetter
- type RestoreConsumer
- func (rc RestoreConsumer) CacheItemInfo(dii details.ItemInfo)
- func (rc RestoreConsumer) ConsumeRestoreCollections(ctx context.Context, rcc inject.RestoreConsumerConfig, ...) (*details.Details, *data.CollectionStats, error)
- func (rc RestoreConsumer) IsServiceEnabled(context.Context, string) (bool, error)
- func (rc RestoreConsumer) PopulateProtectedResourceIDAndName(ctx context.Context, protectedResource string, ins idname.Cacher) (idname.Provider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Collections []data.BackupCollection Exclude *prefixmatcher.StringSetMatcher Deets *details.Details Err error Stats data.CollectionStats ProtectedResourceID string ProtectedResourceName string ProtectedResourceErr error }
func (Controller) CacheItemInfo ¶
func (ctrl Controller) CacheItemInfo(dii details.ItemInfo)
func (Controller) ConsumeRestoreCollections ¶
func (ctrl Controller) ConsumeRestoreCollections( _ context.Context, _ inject.RestoreConsumerConfig, _ []data.RestoreCollection, _ *fault.Bus, _ *count.Bus, ) (*details.Details, *data.CollectionStats, error)
func (*Controller) GetMetadataPaths ¶
func (ctrl *Controller) GetMetadataPaths( ctx context.Context, r kinject.RestoreProducer, base inject.ReasonAndSnapshotIDer, errs *fault.Bus, ) ([]path.RestorePaths, error)
func (Controller) IsServiceEnabled ¶
func (ctrl Controller) IsServiceEnabled( _ context.Context, _ path.ServiceType, _ string, ) (bool, error)
func (Controller) PopulateProtectedResourceIDAndName ¶
func (Controller) ProduceBackupCollections ¶
func (ctrl Controller) ProduceBackupCollections( _ context.Context, _ inject.BackupProducerConfig, _ *count.Bus, _ *fault.Bus, ) ( []data.BackupCollection, prefixmatcher.StringSetReader, bool, error, )
func (Controller) ProduceExportCollections ¶
func (ctrl Controller) ProduceExportCollections( _ context.Context, _ int, _ control.ExportConfig, _ []data.RestoreCollection, _ *metrics.ExportStats, _ *fault.Bus, ) ([]export.Collectioner, error)
func (Controller) SetRateLimiter ¶
func (ctrl Controller) SetRateLimiter( ctx context.Context, service path.ServiceType, options control.Options, ) context.Context
func (Controller) Wait ¶
func (ctrl Controller) Wait() *data.CollectionStats
type IDNameGetter ¶
func (IDNameGetter) GetIDAndName ¶
func (ing IDNameGetter) GetIDAndName( _ context.Context, _ string, _ api.CallConfig, ) (string, string, error)
type RestoreConsumer ¶
type RestoreConsumer struct { Deets *details.Details Err error Stats data.CollectionStats ProtectedResourceID string ProtectedResourceName string ProtectedResourceErr error }
func (RestoreConsumer) CacheItemInfo ¶
func (rc RestoreConsumer) CacheItemInfo(dii details.ItemInfo)
func (RestoreConsumer) ConsumeRestoreCollections ¶
func (rc RestoreConsumer) ConsumeRestoreCollections( ctx context.Context, rcc inject.RestoreConsumerConfig, dcs []data.RestoreCollection, errs *fault.Bus, ctr *count.Bus, ) (*details.Details, *data.CollectionStats, error)
func (RestoreConsumer) IsServiceEnabled ¶
Click to show internal directories.
Click to hide internal directories.