Closed chlins closed 2 years ago
harborClient.V2() will return a client without basePath, and if call sdk methods will cause error(404/405 ...).
maybe can wrap like this.
func (c *Config) ToV2Config() v2client.Config { return v2client.Config{ URL: c.URL + "/v2.0/api", Transport: insecureTransport, AuthInfo: c.AuthInfo, } }
harborClient.V2() will return a client without basePath, and if call sdk methods will cause error(404/405 ...).
maybe can wrap like this.