github.com/dolthub/dolt/go@v0.40.5-0.20240520175717-68db7794bea6/libraries/utils/config/keys.go (about) 1 // Copyright 2023 Dolthub, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package config 16 17 var ConfigOptions = map[string]struct{}{ 18 UserEmailKey: {}, 19 UserNameKey: {}, 20 UserCreds: {}, 21 DoltEditor: {}, 22 InitBranchName: {}, 23 RemotesApiHostKey: {}, 24 RemotesApiHostPortKey: {}, 25 AddCredsUrlKey: {}, 26 DoltLabInsecureKey: {}, 27 MetricsDisabled: {}, 28 MetricsHost: {}, 29 MetricsPort: {}, 30 MetricsInsecure: {}, 31 PushAutoSetupRemote: {}, 32 ProfileKey: {}, 33 VersionCheckDisabled: {}, 34 } 35 36 const UserEmailKey = "user.email" 37 38 const UserNameKey = "user.name" 39 40 const UserCreds = "user.creds" 41 42 const DoltEditor = "core.editor" 43 44 const InitBranchName = "init.defaultbranch" 45 46 const RemotesApiHostKey = "remotes.default_host" 47 48 const RemotesApiHostPortKey = "remotes.default_port" 49 50 const AddCredsUrlKey = "creds.add_url" 51 52 const DoltLabInsecureKey = "doltlab.insecure" 53 54 const MetricsDisabled = "metrics.disabled" 55 56 const MetricsHost = "metrics.host" 57 58 const MetricsPort = "metrics.port" 59 60 const MetricsInsecure = "metrics.insecure" 61 62 const PushAutoSetupRemote = "push.autosetupremote" 63 64 const ProfileKey = "profile" 65 66 const VersionCheckDisabled = "versioncheck.disabled"