stub

package
v0.0.0-...-880cb89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataForInfo

func DataForInfo(
	service path.ServiceType,
	cols []ColInfo,
	backupVersion int,
) ([]m365Stub.ColInfo, error)

func DriveItemInfo

func DriveItemInfo() details.ItemInfo

func FileWithData

func FileWithData(
	name, lookupKey string,
	fileData []byte,
) (m365Stub.ItemInfo, error)

func ItemWithMetadata

func ItemWithMetadata(
	fileName, itemID, lookupKey string,
	meta MetaData,
	permUseID bool,
) (m365Stub.ItemInfo, error)

func NewCollection

func NewCollection(
	service path.ServiceType,
	PathElements []string,
	backupVersion int,
) *collection

Types

type ColInfo

type ColInfo struct {
	PathElements []string
	Files        []ItemData
	Folders      []ItemData
	Meta         MetaData
}

type FileData

type FileData struct {
	FileName string `json:"fileName,omitempty"`
	Data     []byte `json:"data,omitempty"`
}

type ItemData

type ItemData struct {
	Name string
	Data []byte
	Meta MetaData
}

type LinkShareData

type LinkShareData struct {
	Entities []odmetadata.Entity
	Scope    string
	Type     string
}

type MetaData

type MetaData struct {
	SharingMode odmetadata.SharingMode
	Perms       PermData
	LinkShares  []LinkShareData
}

type PermData

type PermData struct {
	User     string // user is only for older versions
	EntityID string
	Roles    []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL