Documentation
¶
Index ¶
- func ForEachFile(path string, fn func(metaData *FilesMetaData))
- func ForEachShare(path string, fn func(metaData *ShareMetaData))
- func ImportMetadata(ctx context.Context, client gateway.GatewayAPIClient, ns string, ...) error
- func ImportShare(ctx context.Context, client gateway.GatewayAPIClient, ns string, ...) error
- type FilesMetaData
- type ShareMetaData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachFile ¶
func ForEachFile(path string, fn func(metaData *FilesMetaData))
ForEachFile is a callback iterator for files.jsonl created by owncloud data_exporter app
func ForEachShare ¶
func ForEachShare(path string, fn func(metaData *ShareMetaData))
ForEachShare is a callback iterator for shares.jsonl created by owncloud data_exporter app
func ImportMetadata ¶
func ImportMetadata(ctx context.Context, client gateway.GatewayAPIClient, ns string, fileData FilesMetaData) error
ImportMetadata from a files.jsonl file in exportPath. The files must already be present on the storage Will set etag and mtime
func ImportShare ¶
func ImportShare(ctx context.Context, client gateway.GatewayAPIClient, ns string, shareData *ShareMetaData) error
ImportShare from a shares.jsonl file in exportPath. The files must already be present on the storage
Types ¶
type FilesMetaData ¶
type FilesMetaData struct { Type string `json:"type"` Path string `json:"path"` Etag string `json:"eTag"` Permissions int `json:"permissions"` MTime int `json:"mtime"` }
FilesMetaData representation in the import data
type ShareMetaData ¶
type ShareMetaData struct {}
ShareMetaData representation in the import metadata
Click to show internal directories.
Click to hide internal directories.