mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-11-02 19:34:01 +08:00
feat: harbor 支持 v1 版本
This commit is contained in:
@@ -13,7 +13,7 @@ func NewClient(config Config) RepoClient {
|
||||
case "Nexus":
|
||||
return repos.NewNexusClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
case "Harbor":
|
||||
return repos.NewHarborClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
return repos.NewHarborClient(config.EndPoint, config.Credential.Username, config.Credential.Password, config.Version)
|
||||
case "DockerRegistry":
|
||||
return repos.NewDockerRegistryClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
}
|
||||
@@ -25,6 +25,7 @@ type Config struct {
|
||||
EndPoint string
|
||||
//DownloadUrl string
|
||||
Credential Credential
|
||||
Version string
|
||||
}
|
||||
|
||||
type Credential struct {
|
||||
|
||||
Reference in New Issue
Block a user