Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Commit string // nolint: gochecknoglobals BinaryType string // nolint: gochecknoglobals GoVersion string // nolint: gochecknoglobals )
Functions ¶
This section is empty.
Types ¶
type AccessControlConfig ¶
type AccessControlConfig struct { Repositories Repositories AdminPolicy Policy }
type AuthConfig ¶
type AuthConfig struct { FailDelay int HTPasswd AuthHTPasswd LDAP *LDAPConfig Bearer *BearerConfig }
type AuthHTPasswd ¶
type AuthHTPasswd struct {
Path string
}
type BearerConfig ¶
type Config ¶
type Config struct { Version string GoVersion string Commit string BinaryType string AccessControl *AccessControlConfig Storage GlobalStorageConfig HTTP HTTPConfig Log *LogConfig Extensions *extconf.ExtensionConfig }
func (*Config) LoadAccessControlConfig ¶
LoadAccessControlConfig populates config.AccessControl struct with values from config.
type GlobalStorageConfig ¶
type HTTPConfig ¶
type HTTPConfig struct { Address string Port string TLS *TLSConfig Auth *AuthConfig RawAccessControl map[string]interface{} `mapstructure:"accessControl,omitempty"` Realm string AllowReadAccess bool `mapstructure:",omitempty"` ReadOnly bool `mapstructure:",omitempty"` Ratelimit *RatelimitConfig `mapstructure:",omitempty"` }
type LDAPConfig ¶
type MethodRatelimitConfig ¶ added in v1.3.8
type PolicyGroup ¶
type RatelimitConfig ¶ added in v1.3.8
type RatelimitConfig struct { Rate *int // requests per second Methods []MethodRatelimitConfig `mapstructure:",omitempty"` }
type Repositories ¶
type Repositories map[string]PolicyGroup
type StorageConfig ¶
Click to show internal directories.
Click to hide internal directories.