mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-31 22:19:33 +08:00
65 lines
1.5 KiB
C
65 lines
1.5 KiB
C
/** ------------------------------------------------------------
|
||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
* -------------------------------------------------------------
|
||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||
* Contributors : Nil Null <nil@null.org>
|
||
* Created On : <2023-09-10>
|
||
* Last Modified : <2024-08-09>
|
||
* ------------------------------------------------------------*/
|
||
|
||
static MirrorSite_t NugetOrg =
|
||
{
|
||
IS_UpstreamProvider,
|
||
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
|
||
{SKIP, ToFill, ToFill, NULL, ROUGH}
|
||
};
|
||
|
||
/**
|
||
* @update 2024-04-18
|
||
* @note {
|
||
* 暂时未实现该换源功能,可参照
|
||
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
|
||
* }
|
||
*/
|
||
static Source_t pl_nuget_sources[] =
|
||
{
|
||
{&UpstreamProvider, NULL, NULL},
|
||
{&NugetOrg, "https://www.nuget.org/api/v2/", NULL},
|
||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
|
||
};
|
||
def_sources_n(pl_nuget);
|
||
|
||
|
||
void
|
||
pl_nuget_getsrc (char *option)
|
||
{
|
||
chsrc_error ("暂时无法查看NuGet源,若有需求,请提交issue");
|
||
}
|
||
|
||
|
||
void
|
||
pl_nuget_setsrc (char *option)
|
||
{
|
||
chsrc_error ("暂时无法为NuGet换源,若有需求,请提交issue");
|
||
}
|
||
|
||
|
||
Feature_t
|
||
pl_nuget_feat (char *option)
|
||
{
|
||
Feature_t f = {0};
|
||
|
||
f.can_get = false;
|
||
f.can_reset = false;
|
||
|
||
f.cap_locally = CanNot;
|
||
f.cap_locally_explain = NA;
|
||
f.can_english = false;
|
||
f.can_user_define = false;
|
||
|
||
f.note = NULL;
|
||
return f;
|
||
}
|
||
|
||
def_target_gsf(pl_nuget);
|