Add license scan report and status (#36) Signed off by: fossabot badges@fossa.com
Add license scan report and status (#36)
Signed off by: fossabot badges@fossa.com
Client library with golang for accessing Harbor API.
Currently, the default Harbor version is v2.10.0.
v2.10.0
NOTE Default version need to be updated manually inside Makefile
To download swagger spec:
make update-spec
To download swagger spec from previous Harbor version, add VERSION as an argument:
VERSION
make update-spec VERSION=v2.10.0
make gen-harbor-api VERSION=v2.10.0
make
There is ClientSet defined inside pkg/harbor/client.go to construct Clients
ClientSet
pkg/harbor/client.go
Create a Config first then use it to create ClientSet
Config
For Example:
c := Config{ URL: url, Transport: tr, AuthInfo: ai, } cs := NewClientSet(c) cs.V2() // v2 client
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
go-client
Client library with golang for accessing Harbor API.
Download swagger spec by version
Currently, the default Harbor version is
v2.10.0.NOTE Default version need to be updated manually inside Makefile
To download swagger spec:
To download swagger spec from previous Harbor version, add
VERSIONas an argument:Generate Clients
Check all available make commands
To use the Clients
There is
ClientSetdefined insidepkg/harbor/client.goto construct ClientsCreate a
Configfirst then use it to createClientSetFor Example:
License