Documentation ¶
Index ¶
- func AugmentRestorePaths(backupVersion int, paths []path.RestorePaths) ([]path.RestorePaths, error)
- func IsServiceEnabled(ctx context.Context, gdd getDefaultDriver, resource string) (bool, error)
- func NewBackup() *oneDriveBackup
- func NewOneDriveHandler(apiClient api.Client, resourceGetter idname.GetResourceIDAndNamer) *onedriveHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AugmentRestorePaths ¶
func AugmentRestorePaths( backupVersion int, paths []path.RestorePaths, ) ([]path.RestorePaths, error)
Augment restore path to add extra files(meta) needed for restore as well as do any other ordering operations on the paths
Only accepts StoragePath/RestorePath pairs where the RestorePath is at least as long as the StoragePath. If the RestorePath is longer than the StoragePath then the first few (closest to the root) directories will use default permissions during restore.
func IsServiceEnabled ¶
func NewBackup ¶
func NewBackup() *oneDriveBackup
NewBackup provides a struct that matches standard apis across m365/service handlers.
func NewOneDriveHandler ¶
func NewOneDriveHandler( apiClient api.Client, resourceGetter idname.GetResourceIDAndNamer, ) *onedriveHandler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.