Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2026 Changes in this version + var ErrNotYetImplemented = clues.New("not yet implemented") + func AccountConnectAndWriteRepoConfig(ctx context.Context, cmd *cobra.Command, pst path.ServiceType) (repository.Repositoryer, *account.Account, error) + func AddCategories(sel *selectors.SharePointBackup, cats []string) *selectors.SharePointBackup + func AddCommand(parent, c *cobra.Command, opts ...cmdOpt) (*cobra.Command, *pflag.FlagSet) + func AddExchangeInclude(sel *selectors.ExchangeRestore, folders, items []string, ...) + func AddExchangeInfo(sel *selectors.ExchangeRestore, v string, ...) + func AddGroupsCategories(sel *selectors.GroupsBackup, cats []string) *selectors.GroupsBackup + func AddGroupsFilter(sel *selectors.GroupsRestore, v string, f func(string) []selectors.GroupsScope) + func AddOneDriveFilter(sel *selectors.OneDriveRestore, v string, ...) + func AddSharePointInfo(sel *selectors.SharePointRestore, v string, ...) + func AddTeamsChatsCategories(sel *selectors.TeamsChatsBackup, cats []string) *selectors.TeamsChatsBackup + func AddTeamsChatsFilter(sel *selectors.TeamsChatsRestore, v string, ...) + func CloseRepo(ctx context.Context, r repository.Repositoryer) + func Control() control.Options + func ControlWithConfig(cfg config.RepoDetails) control.Options + func FilterExchangeRestoreInfoSelectors(sel *selectors.ExchangeRestore, opts ExchangeOpts) + func FilterGroupsRestoreInfoSelectors(sel *selectors.GroupsRestore, opts GroupsOpts) + func FilterOneDriveRestoreInfoSelectors(sel *selectors.OneDriveRestore, opts OneDriveOpts) + func FilterSharePointRestoreInfoSelectors(sel *selectors.SharePointRestore, opts SharePointOpts) + func FilterTeamsChatsRestoreInfoSelectors(sel *selectors.TeamsChatsRestore, opts TeamsChatsOpts) + func GetStorageProviderAndOverrides(ctx context.Context, cmd *cobra.Command) (storage.ProviderType, map[string]string, error) + func GroupsAllowedCategories() map[string]struct + func HasNoFlagsAndShownHelp(cmd *cobra.Command) bool + func HideCommand() cmdOpt + func IncludeExchangeRestoreDataSelectors(opts ExchangeOpts) *selectors.ExchangeRestore + func IncludeGroupsRestoreDataSelectors(ctx context.Context, opts GroupsOpts) *selectors.GroupsRestore + func IncludeOneDriveRestoreDataSelectors(opts OneDriveOpts) *selectors.OneDriveRestore + func IncludeSharePointRestoreDataSelectors(ctx context.Context, opts SharePointOpts) *selectors.SharePointRestore + func IncludeTeamsChatsRestoreDataSelectors(ctx context.Context, opts TeamsChatsOpts) *selectors.TeamsChatsRestore + func IsValidBool(in string) bool + func IsValidTimeFormat(in string) bool + func MakeAbsoluteFilePath(p string) (string, error) + func MakeExportConfig(ctx context.Context, opts ExportCfgOpts) control.ExportConfig + func MakeRestoreConfig(ctx context.Context, opts RestoreCfgOpts) control.RestoreConfig + func MakeRetentionOpts(cmd *cobra.Command) (repository.Retention, error) + func MarkDebugCommand() cmdOpt + func MarkPreReleaseCommand() cmdOpt + func MarkPreviewCommand() cmdOpt + func ParseBackupOptions() control.BackupConfig + func SharePointAllowedCategories() map[string]struct + func TeamsChatsAllowedCategories() map[string]struct + func UsersMap(ctx context.Context, acct account.Account, co control.Options, ...) (idname.Cacher, error) + func ValidateExchangeRestoreFlags(backupID string, opts ExchangeOpts) error + func ValidateExportConfigFlags(opts *ExportCfgOpts, acceptedFormatTypes []string) error + func ValidateGroupsRestoreFlags(backupID string, opts GroupsOpts, isRestore bool) error + func ValidateOneDriveRestoreFlags(backupID string, opts OneDriveOpts) error + func ValidateRestoreConfigFlags(opts RestoreCfgOpts) error + func ValidateSharePointRestoreFlags(backupID string, opts SharePointOpts) error + func ValidateTeamsChatsRestoreFlags(backupID string, opts TeamsChatsOpts, isRestore bool) error + type ExchangeOpts struct + Contact []string + ContactFolder []string + ContactName string + Email []string + EmailFolder []string + EmailReceivedAfter string + EmailReceivedBefore string + EmailSender string + EmailSubject string + Event []string + EventCalendar []string + EventOrganizer string + EventRecurs string + EventStartsAfter string + EventStartsBefore string + EventSubject string + ExportCfg ExportCfgOpts + Populated flags.PopulatedFlags + RestoreCfg RestoreCfgOpts + Users []string + func MakeExchangeOpts(cmd *cobra.Command) ExchangeOpts + type ExportCfgOpts struct + Archive bool + Format string + Populated flags.PopulatedFlags + type GroupsOpts struct + Channels []string + Conversations []string + ExportCfg ExportCfgOpts + FileCreatedAfter string + FileCreatedBefore string + FileModifiedAfter string + FileModifiedBefore string + FileName []string + FolderPath []string + Groups []string + Library string + Lists []string + MessageCreatedAfter string + MessageCreatedBefore string + MessageLastReplyAfter string + MessageLastReplyBefore string + Messages []string + Page []string + PageFolder []string + Populated flags.PopulatedFlags + Posts []string + RestoreCfg RestoreCfgOpts + SiteID []string + WebURL []string + func MakeGroupsOpts(cmd *cobra.Command) GroupsOpts + func (g GroupsOpts) GetFileTimeField(flag string) string + type OneDriveOpts struct + ExportCfg ExportCfgOpts + FileCreatedAfter string + FileCreatedBefore string + FileModifiedAfter string + FileModifiedBefore string + FileName []string + FolderPath []string + Populated flags.PopulatedFlags + RestoreCfg RestoreCfgOpts + Users []string + func MakeOneDriveOpts(cmd *cobra.Command) OneDriveOpts + type RepoDetailsAndOpts struct + Opts control.Options + Repo config.RepoDetails + func GetAccountAndConnect(ctx context.Context, cmd *cobra.Command, pst path.ServiceType) (repository.Repositoryer, RepoDetailsAndOpts, error) + func GetAccountAndConnectWithOverrides(ctx context.Context, pst path.ServiceType, provider storage.ProviderType, ...) (repository.Repositoryer, RepoDetailsAndOpts, error) + type RestoreCfgOpts struct + Collisions string + DTTMFormat dttm.TimeFormat + Destination string + Populated flags.PopulatedFlags + ProtectedResource string + SkipPermissions bool + type SharePointOpts struct + ExportCfg ExportCfgOpts + FileCreatedAfter string + FileCreatedBefore string + FileModifiedAfter string + FileModifiedBefore string + FileName []string + FolderPath []string + Library string + ListCreatedAfter string + ListCreatedBefore string + ListModifiedAfter string + ListModifiedBefore string + Lists []string + Page []string + PageFolder []string + Populated flags.PopulatedFlags + RestoreCfg RestoreCfgOpts + SiteID []string + WebURL []string + func MakeSharePointOpts(cmd *cobra.Command) SharePointOpts + func (s SharePointOpts) GetFileTimeField(flag string) string + type TeamsChatsOpts struct + ExportCfg ExportCfgOpts + Populated flags.PopulatedFlags + Users []string + func MakeTeamsChatsOpts(cmd *cobra.Command) TeamsChatsOpts