package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# Functions
AuthMode ...
CoreSecret returns a secret to mark harbor-core when communicate with other component.
Database returns database settings.
Email returns email server settings.
ExtEndpoint returns the external URL of Harbor: protocol://host:port.
ExtURL returns the external URL: host:port.
GetCfgManager return the current config manager.
GetChartMuseumEndpoint returns the endpoint of the chartmuseum service otherwise an non nil error is returned.
GetCoreURL returns the url of core from env.
GetGCTimeWindow returns the reserve time window of blob.
GetPermittedRegistryTypesForProxyCache returns the permitted registry types for proxy cache.
GetPortalURL returns the URL of portal.
GetRedisOfRegURL returns the URL of Redis used by registry.
GetRegistryCtlURL returns the URL of registryctl.
GetSystemCfg returns the system configurations.
HTTPAuthProxySetting returns the setting of HTTP Auth proxy.
Init configurations.
InitialAdminPassword returns the initial password for administrator.
InitWithSettings init config with predefined configs, and optionally overwrite the keyprovider.
InternalCoreURL returns the local harbor core url.
InternalJobServiceURL returns jobservice URL for internal communication between Harbor containers.
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.
InternalTokenServiceEndpoint returns token service endpoint for internal communication between Harbor containers.
JobserviceSecret returns a secret to mark Jobservice when communicate with other component TODO replace it with method of SecretStore.
LDAPConf returns the setting of ldap server.
LDAPGroupConf returns the setting of ldap group search.
Load configurations.
LocalCoreURL returns the local harbor core url.
Metric returns the overall metric settings.
NotificationEnable returns a bool to indicates if notification enabled in harbor.
OIDCSetting returns the setting of OIDC provider, currently there's only one OIDC provider allowed for Harbor and it's only effective when auth_mode is set to oidc_auth.
OnlyAdminCreateProject returns the flag to restrict that only sys admin can create project.
QuotaPerProjectEnable returns a bool to indicates if quota per project enabled in harbor.
QuotaSetting returns the setting of quota.
ReadOnly returns a bool to indicates if Harbor is in read only mode.
RegistryCredential returns the username and password the core uses to access registry.
RegistryURL ...
RobotPrefix user defined robot name prefix.
RobotTokenDuration returns the token expiration time of robot account (in minute).
SecretKey returns the secret key to encrypt the password of target.
SelfRegistration returns the enablement of self registration.
TokenExpiration returns the token expiration time (in minute).
TokenPrivateKeyPath returns the path to the key for signing token for registry.
TrivyAdapterURL returns the endpoint URL of a Trivy adapter instance, by default it's the one deployed within Harbor.
UAASettings returns the UAASettings to access UAA service.
Upload save all system configurations.
WithChartMuseum returns a bool to indicate if chartmuseum is deployed with Harbor.
WithNotary returns a bool value to indicate if Harbor's deployed with Notary.
WithTrivy returns a bool value to indicate if Harbor's deployed with Trivy.
# Constants
SessionCookieName is the name of the cookie for session ID.
# Variables
SecretStore manages secrets.