mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-10-06 07:47:10 +08:00
feat: 增加docker-registry支持
This commit is contained in:
@@ -14,19 +14,20 @@ func NewClient(config Config) RepoClient {
|
||||
return repos.NewNexusClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
case "Harbor":
|
||||
return repos.NewHarborClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
case "DockerRegistry":
|
||||
return repos.NewDockerRegistryClient(config.EndPoint, config.Credential.Username, config.Credential.Password)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Type string
|
||||
EndPoint string
|
||||
Type string
|
||||
EndPoint string
|
||||
//DownloadUrl string
|
||||
Credential Credential
|
||||
Credential Credential
|
||||
}
|
||||
|
||||
type Credential struct {
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user