mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
16 lines
289 B
Go
16 lines
289 B
Go
package harbor
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
type Config struct {
|
|
URL string `json:"url" yaml:"url"`
|
|
AuthURL string `json:"authUrl" yaml:"authUrl"`
|
|
Project string `json:"project" yaml:"project"`
|
|
}
|
|
|
|
func (c Config) DockerRegistry() string {
|
|
return strings.TrimPrefix(c.URL, "https://")
|
|
}
|