Documentation ¶
Index ¶
- func CollectionsForInfo(service path.ServiceType, tenant, user string, ...) (int, int, []data.RestoreCollection, map[string]map[string][]byte, error)
- func GetCollectionsAndExpected(config ConfigInfo, testCollections []ColInfo, backupVersion int) (int, int, []data.RestoreCollection, map[string]map[string][]byte, error)
- type ColInfo
- type ConfigInfo
- type ItemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionsForInfo ¶
func CollectionsForInfo( service path.ServiceType, tenant, user string, restoreCfg control.RestoreConfig, allInfo []ColInfo, backupVersion int, ) (int, int, []data.RestoreCollection, map[string]map[string][]byte, error)
Types ¶
type ColInfo ¶
type ColInfo struct { // Elements (in order) for the path representing this collection. Should // only contain elements after the prefix that corso uses for the path. For // example, a collection for the Inbox folder in exchange mail would just be // "Inbox". PathElements []string Category path.CategoryType Items []ItemInfo // auxItems are items that can be retrieved with Fetch but won't be returned // by Items(). These files do not directly participate in comparisosn at the // end of a test. AuxItems []ItemInfo }
type ConfigInfo ¶
type ConfigInfo struct { Opts control.Options Service path.ServiceType Tenant string ResourceOwners []string RestoreCfg control.RestoreConfig }
type ItemInfo ¶
type ItemInfo struct { // lookupKey is a string that can be used to find this data from a set of // other data in the same collection. This key should be something that will // be the same before and after restoring the item in M365 and may not be // the M365 ID. When restoring items out of place, the item is assigned a // new ID making it unsuitable for a lookup key. LookupKey string Name string Data []byte }
Click to show internal directories.
Click to hide internal directories.