mock

package
v0.0.0-...-880cb89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (*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 (ctrl Controller) PopulateProtectedResourceIDAndName(
	ctx context.Context,
	protectedResource string,
	ins idname.Cacher,
) (idname.Provider, error)

func (Controller) ProduceBackupCollections

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

type IDNameGetter struct {
	ID, Name string
	Err      error
}

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

func (rc RestoreConsumer) IsServiceEnabled(
	context.Context,
	string,
) (bool, error)

func (RestoreConsumer) PopulateProtectedResourceIDAndName

func (rc RestoreConsumer) PopulateProtectedResourceIDAndName(
	ctx context.Context,
	protectedResource string,
	ins idname.Cacher,
) (idname.Provider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL