Horbor API SDK .NET

基于 Harbor v2.3.3

nugut包地址: https://www.nuget.org/packages/Horbor.Client

源码地址: https://github.com/437700418/Horbor.Client

 

using Horbor.Client;
using Horbor.Client.Group.Model;
using System.Threading.Tasks;

        HorborClientConfiguratio _horborClientConfiguratio = new HorborClientConfiguratio(new HarborConfig("admin", "Harbor12345", "192.168.189.99:8088"));

         using (HorborClient _horborClient = _horborClientConfiguratio.CreatHorborClient())
            {
                var result = await _horborClient.Repository.ListRepositoriesByProject(new Horbor.Client.Group.Model.ListRepositoriesByProjectParam()
                {
                    project_name = projectname
                });
            }

目前仅对接了 Repository 相关的3个接口,需要进一步完善。

posted @ 2022-02-07 15:44  宝宝董  阅读(44)  评论(0编辑  收藏  举报