Documentation ¶
Overview ¶
Package config contains data types for configuration of olareg.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HTTP ConfigHTTP Storage ConfigStorage API ConfigAPI Log slog.Logger }
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type ConfigAPI ¶
type ConfigAPI struct { PushEnabled *bool DeleteEnabled *bool Manifest ConfigAPIManifest Blob ConfigAPIBlob Referrer ConfigAPIReferrer }
type ConfigAPIBlob ¶
type ConfigAPIBlob struct {
DeleteEnabled *bool
}
type ConfigAPIManifest ¶
type ConfigAPIManifest struct {
Limit int64
}
type ConfigAPIReferrer ¶
type ConfigGC ¶
type ConfigGC struct { Frequency time.Duration // frequency to run garbage collection, disable gc with a negative value GracePeriod time.Duration // time to preserve recently pushed manifests and blobs, disable with a negative value Untagged *bool // delete untagged manifests EmptyRepo *bool // delete empty repo ReferrersDangling *bool // delete referrers when manifest does not exist ReferrersWithSubj *bool // delete referrers response when subject manifest is deleted }
type ConfigHTTP ¶
type ConfigStorage ¶
Click to show internal directories.
Click to hide internal directories.