🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
DownloadLfs.hpp 文件参考
#include "AstGlobal.h"
#include "AstUtil/StringView.hpp"
#include <string>
#include <cstddef>

浏览该文件的源代码.

类

struct  ast::LfsPointerInfo
 

命名空间

namespace  ast
 

函数

errc_t ast::aLfsParsePointer (StringView pointerText, LfsPointerInfo &info)
 
std::string ast::aLfsEndpoint (StringView remoteUrl)
 
std::string ast::aLfsBatchRequestBody (StringView oid, std::size_t size)
 
errc_t ast::aDownloadLfs (StringView pointerFile, StringView outputFile, StringView remoteUrl)
 

详细描述

Git LFS 对象下载

提供从 Git LFS 批量接口下载对象的函数。 流程:解析指针 -> 推导端点 -> batch POST 换取签发下载地址 -> GET 下载 -> 落盘。 复用 AstUtil/Network 与 AstUtil/ParseFormat/Json 现有能力。

作者
axel
日期
2026-08-27

SpaceAST项目(https://github.com/space-ast/ast) 本软件基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。