Workspace Sync API#

这些 API 用于 workspace 文件同步和本地路径规划,多数场景由运行时调用。

WorkspaceUploadFile(local_path, object_path)

Local file that should be uploaded into a workspace prefix.

WorkspaceDownloadFile(object_path, local_path)

Remote object that should be downloaded into an attempt workspace.

WorkspaceSyncPlan(upload_files, ...)

Plan for synchronizing an attempt workspace to a LakeFS prefix.

build_workspace_sync_plan(workspace_dir, ...)

Build a complete sync plan for a workspace prefix.

workspace_upload_files(workspace_dir, ...)

List local files that should be uploaded for a workspace publication.

workspace_download_files(workspace_dir, ...)

Build download records for objects visible to a workspace task.

workspace_delete_object_paths(...)

Find stale remote objects that should be deleted from a staging branch.

workspace_local_path(workspace_spec, object_path)

Map a LakeFS object path to a local workspace path.