summaryrefslogtreecommitdiffstats
path: root/modules/structs/settings.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-06-10 14:05:46 +0200
committerGitHub <noreply@github.com>2020-06-10 15:05:46 +0300
commit68a2af6d68bb54a704bf98a3ba0ceada4d7808b9 (patch)
treeffefd5ef7d48876dd90e4118efe38eb7fa1ff0ec /modules/structs/settings.go
parent1ac46186ff004861a786a81fe045beddaf790407 (diff)
downloadgitea-68a2af6d68bb54a704bf98a3ba0ceada4d7808b9.tar.gz
gitea-68a2af6d68bb54a704bf98a3ba0ceada4d7808b9.zip
API expose usefull General Repo settings settings (#11758)
* GeneralRepoSettings expose MirrorsDisabled, HTTPGitDisabled, MaxCreationLimit * Apply suggestions from code review Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com> * lint Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com>
Diffstat (limited to 'modules/structs/settings.go')
-rw-r--r--modules/structs/settings.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/structs/settings.go b/modules/structs/settings.go
new file mode 100644
index 0000000000..dcd1b5cabd
--- /dev/null
+++ b/modules/structs/settings.go
@@ -0,0 +1,11 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package structs
+
+// GeneralRepoSettings contains global repository settings exposed by API
+type GeneralRepoSettings struct {
+ MirrorsDisabled bool `json:"mirrors_disabled"`
+ HTTPGitDisabled bool `json:"http_git_disabled"`
+}