2017-04-13 12:54:58 +02:00
|
|
|
// Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2017-03-20 10:20:31 +01:00
|
|
|
|
|
|
|
package common
|
|
|
|
|
|
|
|
// const variables
|
|
|
|
const (
|
|
|
|
DBAuth = "db_auth"
|
|
|
|
LDAPAuth = "ldap_auth"
|
|
|
|
ProCrtRestrEveryone = "everyone"
|
|
|
|
ProCrtRestrAdmOnly = "adminonly"
|
2017-06-27 15:20:00 +02:00
|
|
|
LDAPScopeBase = 1
|
|
|
|
LDAPScopeOnelevel = 2
|
|
|
|
LDAPScopeSubtree = 3
|
2017-03-20 10:20:31 +01:00
|
|
|
|
2017-05-16 07:59:40 +02:00
|
|
|
RoleProjectAdmin = 1
|
|
|
|
RoleDeveloper = 2
|
|
|
|
RoleGuest = 3
|
2017-05-03 11:21:38 +02:00
|
|
|
|
2017-03-20 10:20:31 +01:00
|
|
|
ExtEndpoint = "ext_endpoint"
|
|
|
|
AUTHMode = "auth_mode"
|
|
|
|
DatabaseType = "database_type"
|
|
|
|
MySQLHost = "mysql_host"
|
|
|
|
MySQLPort = "mysql_port"
|
|
|
|
MySQLUsername = "mysql_username"
|
|
|
|
MySQLPassword = "mysql_password"
|
|
|
|
MySQLDatabase = "mysql_database"
|
|
|
|
SQLiteFile = "sqlite_file"
|
|
|
|
SelfRegistration = "self_registration"
|
2017-11-03 12:52:20 +01:00
|
|
|
UIURL = "ui_url"
|
|
|
|
JobServiceURL = "jobservice_url"
|
2017-03-20 10:20:31 +01:00
|
|
|
LDAPURL = "ldap_url"
|
|
|
|
LDAPSearchDN = "ldap_search_dn"
|
|
|
|
LDAPSearchPwd = "ldap_search_password"
|
|
|
|
LDAPBaseDN = "ldap_base_dn"
|
|
|
|
LDAPUID = "ldap_uid"
|
|
|
|
LDAPFilter = "ldap_filter"
|
|
|
|
LDAPScope = "ldap_scope"
|
|
|
|
LDAPTimeout = "ldap_timeout"
|
2017-11-01 11:19:58 +01:00
|
|
|
LDAPVerifyCert = "ldap_verify_cert"
|
2017-03-20 10:20:31 +01:00
|
|
|
TokenServiceURL = "token_service_url"
|
|
|
|
RegistryURL = "registry_url"
|
|
|
|
EmailHost = "email_host"
|
|
|
|
EmailPort = "email_port"
|
|
|
|
EmailUsername = "email_username"
|
|
|
|
EmailPassword = "email_password"
|
|
|
|
EmailFrom = "email_from"
|
|
|
|
EmailSSL = "email_ssl"
|
|
|
|
EmailIdentity = "email_identity"
|
2017-08-30 09:15:44 +02:00
|
|
|
EmailInsecure = "email_insecure"
|
2017-03-20 10:20:31 +01:00
|
|
|
ProjectCreationRestriction = "project_creation_restriction"
|
|
|
|
MaxJobWorkers = "max_job_workers"
|
|
|
|
TokenExpiration = "token_expiration"
|
|
|
|
CfgExpiration = "cfg_expiration"
|
|
|
|
JobLogDir = "job_log_dir"
|
|
|
|
AdminInitialPassword = "admin_initial_password"
|
|
|
|
AdmiralEndpoint = "admiral_url"
|
|
|
|
WithNotary = "with_notary"
|
2017-06-15 09:44:04 +02:00
|
|
|
WithClair = "with_clair"
|
2017-06-27 15:20:00 +02:00
|
|
|
ScanAllPolicy = "scan_all_policy"
|
2017-07-17 09:00:48 +02:00
|
|
|
ClairDBPassword = "clair_db_password"
|
2017-12-19 08:25:12 +01:00
|
|
|
ClairDBHost = "clair_db_host"
|
|
|
|
ClairDBPort = "clair_db_port"
|
|
|
|
ClairDB = "clair_db"
|
|
|
|
ClairDBUsername = "clair_db_username"
|
2017-10-01 23:03:53 +02:00
|
|
|
UAAEndpoint = "uaa_endpoint"
|
|
|
|
UAAClientID = "uaa_client_id"
|
|
|
|
UAAClientSecret = "uaa_client_secret"
|
2017-12-19 07:42:07 +01:00
|
|
|
UAAVerifyCert = "uaa_verify_cert"
|
|
|
|
DefaultClairEndpoint = "http://clair:6060"
|
2017-11-15 07:49:14 +01:00
|
|
|
CfgDriverDB = "db"
|
|
|
|
CfgDriverJSON = "json"
|
2017-03-20 10:20:31 +01:00
|
|
|
)
|