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個接口,需要進一步完善。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章