Documentation ¶
Index ¶
- func CreateCollections[C graph.GetIDer, I groupsItemer](ctx context.Context, bpc inject.BackupProducerConfig, bh backupHandler[C, I], ...) ([]data.BackupCollection, bool, error)
- func DeserializeMetadataFiles(ctx context.Context, colls []data.RestoreCollection) ([]store.MetadataFile, error)
- func NewChannelBackupHandler(protectedResource string, ac api.Channels) channelsBackupHandler
- func NewCollection[C graph.GetIDer, I groupsItemer](baseCol data.BaseCollection, getAndAugment getItemAndAugmentInfoer[C, I], ...) data.BackupCollection
- func NewConversationBackupHandler(protectedResource string, ac api.Conversations, resourceEmail string) conversationsBackupHandler
- func NewExportCollection(baseDir string, backingCollections []data.RestoreCollection, backupVersion int, ...) export.Collectioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCollections ¶
func CreateCollections[C graph.GetIDer, I groupsItemer]( ctx context.Context, bpc inject.BackupProducerConfig, bh backupHandler[C, I], tenantID string, scope selectors.GroupsScope, su support.StatusUpdater, useLazyReader bool, counter *count.Bus, errs *fault.Bus, ) ([]data.BackupCollection, bool, error)
func DeserializeMetadataFiles ¶
func DeserializeMetadataFiles( ctx context.Context, colls []data.RestoreCollection, ) ([]store.MetadataFile, error)
func NewChannelBackupHandler ¶
func NewCollection ¶
func NewCollection[C graph.GetIDer, I groupsItemer]( baseCol data.BaseCollection, getAndAugment getItemAndAugmentInfoer[C, I], protectedResource string, added map[string]time.Time, removed map[string]struct{}, contains container[C], statusUpdater support.StatusUpdater, useLazyReader bool, ) data.BackupCollection
State of the collection is set as an observation of the current and previous paths. If the curr path is nil, the state is assumed to be deleted. If the prev path is nil, it is assumed newly created. If both are populated, then state is either moved (if they differ), or notMoved (if they match).
func NewConversationBackupHandler ¶
func NewConversationBackupHandler( protectedResource string, ac api.Conversations, resourceEmail string, ) conversationsBackupHandler
func NewExportCollection ¶
func NewExportCollection( baseDir string, backingCollections []data.RestoreCollection, backupVersion int, cec control.ExportConfig, stats *metrics.ExportStats, cat path.CategoryType, ) export.Collectioner
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.