Documentation ¶
Index ¶
- func CollectLibraries(ctx context.Context, bpc inject.BackupProducerConfig, bh drive.BackupHandler, ...) ([]data.BackupCollection, bool, error)
- func CollectLists(ctx context.Context, bh backupHandler, bpc inject.BackupProducerConfig, ...) ([]data.BackupCollection, bool, error)
- func CollectPages(ctx context.Context, bpc inject.BackupProducerConfig, creds account.M365Config, ...) ([]data.BackupCollection, error)
- func NewExportCollection(baseDir string, backingCollection []data.RestoreCollection, backupVersion int, ...) export.Collectioner
- func NewLazyFetchCollection(getter getItemByIDer, folderPath, prevPath path.Path, locPb *path.Builder, ...) *lazyFetchCollection
- func NewListsBackupHandler(protectedResource string, ac api.Lists) listsBackupHandler
- func NewListsRestoreHandler(protectedResource string, ac api.Lists) listsRestoreHandler
- func NewPrefetchCollection(getter getItemByIDer, folderPath, prevPath path.Path, locPb *path.Builder, ...) *prefetchCollection
- func RestoreListCollection(ctx context.Context, rh restoreHandler, dc data.RestoreCollection, ...) (support.CollectionMetrics, error)
- func RestorePageCollection(ctx context.Context, gs graph.Servicer, dc data.RestoreCollection, ...) (support.CollectionMetrics, error)
- type DataCategory
- type DeleteLister
- type GetLister
- type GetListsByCollisionKeyser
- type PatchLister
- type PostLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectLibraries ¶
func CollectLibraries( ctx context.Context, bpc inject.BackupProducerConfig, bh drive.BackupHandler, tenantID string, ssmb *prefixmatcher.StringSetMatchBuilder, su support.StatusUpdater, counter *count.Bus, errs *fault.Bus, ) ([]data.BackupCollection, bool, error)
CollectLibraries constructs a onedrive Collections struct and Get()s all the drives associated with the site.
func CollectLists ¶
func CollectLists( ctx context.Context, bh backupHandler, bpc inject.BackupProducerConfig, ac api.Client, tenantID string, scope selectors.SharePointScope, su support.StatusUpdater, counter *count.Bus, errs *fault.Bus, ) ([]data.BackupCollection, bool, error)
func CollectPages ¶
func CollectPages( ctx context.Context, bpc inject.BackupProducerConfig, creds account.M365Config, ac api.Client, scope selectors.SharePointScope, su support.StatusUpdater, counter *count.Bus, errs *fault.Bus, ) ([]data.BackupCollection, error)
CollectPages constructs a sharepoint Collections struct and Get()s the associated M365 IDs for the associated Pages.
func NewExportCollection ¶
func NewExportCollection( baseDir string, backingCollection []data.RestoreCollection, backupVersion int, stats *metrics.ExportStats, ) export.Collectioner
func NewLazyFetchCollection ¶
func NewListsBackupHandler ¶
func NewListsRestoreHandler ¶
func NewPrefetchCollection ¶
func NewPrefetchCollection( getter getItemByIDer, folderPath, prevPath path.Path, locPb *path.Builder, ac api.Client, scope selectors.SharePointScope, statusUpdater support.StatusUpdater, ctrlOpts control.Options, counter *count.Bus, ) *prefetchCollection
NewPrefetchCollection constructor function for creating a prefetchCollection
func RestoreListCollection ¶
func RestorePageCollection ¶
func RestorePageCollection( ctx context.Context, gs graph.Servicer, dc data.RestoreCollection, restoreContainerName string, deets *details.Builder, errs *fault.Bus, ) (support.CollectionMetrics, error)
RestorePageCollection handles restoration of an individual site page collection. returns: - the collection's item and byte count metrics - the context cancellation station. True iff context is canceled.
Types ¶
type DataCategory ¶
type DataCategory int
const ( Unknown DataCategory = 0 List DataCategory = 1 Pages DataCategory = 2 )
type DeleteLister ¶
type GetListsByCollisionKeyser ¶
type GetListsByCollisionKeyser interface { // GetListsByCollisionKey looks up all lists currently in // the site, and returns them in a map[collisionKey]listID. // The collision key is displayName of the list // which uniquely identifies the list. // Collision key checks are used during restore to handle the on- // collision restore configurations that cause the list restore to get // skipped, replaced, or copied. GetListsByCollisionKey(ctx context.Context) (map[string]string, error) }
type PatchLister ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.