Documentation ¶
Index ¶
- Variables
- func SameFile(str1, str2 string) (bool, error)
- type AccessControlConfig
- type AuthConfig
- type AuthHTPasswd
- type BearerConfig
- type Config
- type GlobalStorageConfig
- type HTTPConfig
- type LDAPConfig
- type LogConfig
- type MethodRatelimitConfig
- type Policy
- type PolicyGroup
- type RatelimitConfig
- type Repositories
- type StorageConfig
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Commit string //nolint: gochecknoglobals ReleaseTag string //nolint: gochecknoglobals BinaryType string //nolint: gochecknoglobals GoVersion string //nolint: gochecknoglobals )
Functions ¶
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 { DistSpecVersion string `json:"distSpecVersion" mapstructure:"distSpecVersion"` GoVersion string Commit string ReleaseTag 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 GlobalStorageConfig struct { StorageConfig `mapstructure:",squash"` SubPaths map[string]StorageConfig }
type HTTPConfig ¶
type HTTPConfig struct { Address string Port string AllowOrigin string // comma separated TLS *TLSConfig Auth *AuthConfig RawAccessControl map[string]interface{} `mapstructure:"accessControl,omitempty"` Realm string 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 ¶
type StorageConfig struct { RootDirectory string Dedupe bool RemoteCache bool GC bool Commit bool GCDelay time.Duration GCInterval time.Duration StorageDriver map[string]interface{} `mapstructure:",omitempty"` }
func (StorageConfig) ParamsEqual ¶ added in v1.4.2
func (expConfig StorageConfig) ParamsEqual(actConfig StorageConfig) bool
Click to show internal directories.
Click to hide internal directories.