使用 goharbor-client 库 发送habor restful api
echo labstack/echo#2158
-
NewRegistry 是干啥用的? RegistryCredential 是凭证,是用来配置replication的。
-
凭证,就是 AddProjectRobotV1
-
Artifacts 参见: https://www.sohu.com/a/433563325_609552
github.com/go-openapi
type CreateTagParams struct {
/*XRequestID
An unique ID for the request
*/
XRequestID *string
/*ProjectName
The name of the project
*/
ProjectName string
/*Reference
The reference of the artifact, can be digest or tag
*/
Reference string
/*RepositoryName
The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb
*/
RepositoryName string
/*Tag
The JSON object of tag.
*/
Tag *model.Tag
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
*/