1package backend
2
3// ServerBackend is an interface that handles server configuration.
4type ServerBackend interface {
5 // AnonAccess returns the access level for anonymous users.
6 AnonAccess() AccessLevel
7 // SetAnonAccess sets the access level for anonymous users.
8 SetAnonAccess(level AccessLevel) error
9 // AllowKeyless returns true if keyless access is allowed.
10 AllowKeyless() bool
11 // SetAllowKeyless sets whether or not keyless access is allowed.
12 SetAllowKeyless(allow bool) error
13 // DefaultBranch returns the default branch for new repositories.
14 DefaultBranch() string
15 // SetDefaultBranch sets the default branch for new repositories.
16 SetDefaultBranch(branch string) error
17}