Documentation ¶
Index ¶
- Variables
- func AdmiralEndpoint() string
- func AuthMode() (string, error)
- func ClairDB() (*models.PostGreSQL, error)
- func ClairEndpoint() string
- func Database() (*models.Database, error)
- func Email() (*models.Email, error)
- func ExtEndpoint() (string, error)
- func ExtURL() (string, error)
- func GetChartMuseumEndpoint() (string, error)
- func GetSystemCfg() (map[string]interface{}, error)
- func Init() error
- func InitByURL(adminServerURL string) error
- func InitialAdminPassword() (string, error)
- func InternalJobServiceURL() string
- func InternalNotaryEndpoint() string
- func InternalTokenServiceEndpoint() string
- func InternalUIURL() string
- func JobserviceSecret() string
- func LDAPConf() (*models.LdapConf, error)
- func LDAPGroupConf() (*models.LdapGroupConf, error)
- func Load() error
- func OnlyAdminCreateProject() (bool, error)
- func ReadOnly() bool
- func RegistryURL() (string, error)
- func Reset() error
- func ScanAllPolicy() models.ScanAllPolicy
- func SecretKey() (string, error)
- func SelfRegistration() (bool, error)
- func TokenExpiration() (int, error)
- func TokenPrivateKeyPath() string
- func UAASettings() (*models.UAASettings, error)
- func UISecret() string
- func Upload(cfg map[string]interface{}) error
- func WithAdmiral() bool
- func WithChartMuseum() bool
- func WithClair() bool
- func WithNotary() bool
Constants ¶
This section is empty.
Variables ¶
var ( // SecretStore manages secrets SecretStore *secret.Store // AdminserverClient is a client for adminserver AdminserverClient client.Client // GlobalProjectMgr is initialized based on the deploy mode GlobalProjectMgr promgr.ProjectManager // AdmiralClient is initialized only under integration deploy mode // and can be passed to project manager as a parameter AdmiralClient *http.Client // TokenReader is used in integration mode to read token TokenReader admiral.TokenReader )
Functions ¶
func AdmiralEndpoint ¶
func AdmiralEndpoint() string
AdmiralEndpoint returns the URL of admiral, if Harbor is not deployed with admiral it should return an empty string.
func ClairEndpoint ¶
func ClairEndpoint() string
ClairEndpoint returns the end point of clair instance, by default it's the one deployed within Harbor.
func ExtEndpoint ¶
ExtEndpoint returns the external URL of Harbor: protocol://host:port
func GetChartMuseumEndpoint ¶ added in v1.6.0
GetChartMuseumEndpoint returns the endpoint of the chartmuseum service otherwise an non nil error is returned
func GetSystemCfg ¶
GetSystemCfg returns the system configurations
func InitialAdminPassword ¶
InitialAdminPassword returns the initial password for administrator
func InternalJobServiceURL ¶
func InternalJobServiceURL() string
InternalJobServiceURL returns jobservice URL for internal communication between Harbor containers
func InternalNotaryEndpoint ¶
func InternalNotaryEndpoint() string
InternalNotaryEndpoint returns notary server endpoint for internal communication between Harbor containers This is currently a conventional value and can be unaccessible when Harbor is not deployed with Notary.
func InternalTokenServiceEndpoint ¶
func InternalTokenServiceEndpoint() string
InternalTokenServiceEndpoint returns token service endpoint for internal communication between Harbor containers
func InternalUIURL ¶ added in v1.5.0
func InternalUIURL() string
InternalUIURL returns the local ui url
func JobserviceSecret ¶
func JobserviceSecret() string
JobserviceSecret returns a secret to mark Jobservice when communicate with other component TODO replace it with method of SecretStore
func LDAPGroupConf ¶ added in v1.5.0
func LDAPGroupConf() (*models.LdapGroupConf, error)
LDAPGroupConf returns the setting of ldap group search
func OnlyAdminCreateProject ¶
OnlyAdminCreateProject returns the flag to restrict that only sys admin can create project
func ReadOnly ¶ added in v1.5.0
func ReadOnly() bool
ReadOnly returns a bool to indicates if Harbor is in read only mode.
func ScanAllPolicy ¶
func ScanAllPolicy() models.ScanAllPolicy
ScanAllPolicy returns the policy which controls the scan all.
func SelfRegistration ¶
SelfRegistration returns the enablement of self registration
func TokenExpiration ¶
TokenExpiration returns the token expiration time (in minute)
func TokenPrivateKeyPath ¶ added in v1.6.0
func TokenPrivateKeyPath() string
TokenPrivateKeyPath returns the path to the key for signing token for registry
func UAASettings ¶
func UAASettings() (*models.UAASettings, error)
UAASettings returns the UAASettings to access UAA service.
func UISecret ¶
func UISecret() string
UISecret returns a secret to mark UI when communicate with other component
func WithAdmiral ¶
func WithAdmiral() bool
WithAdmiral returns a bool to indicate if Harbor's deployed with admiral.
func WithChartMuseum ¶ added in v1.6.0
func WithChartMuseum() bool
WithChartMuseum returns a bool to indicate if chartmuseum is deployed with Harbor.
func WithClair ¶
func WithClair() bool
WithClair returns a bool value to indicate if Harbor's deployed with Clair
func WithNotary ¶
func WithNotary() bool
WithNotary returns a bool value to indicate if Harbor's deployed with Notary
Types ¶
This section is empty.