Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerRootCmd ¶
NewServerRootCmd creates a "zot" registry server command.
Types ¶
type HotReloader ¶
type HotReloader struct {
// contains filtered or unexported fields
}
HotReloader reloads the server configuration when the config file (or the LDAP credentials file it references) changes. The file watch gives low-latency reloads; the stat fingerprint poll is the guarantee, catching changes the watch cannot see (Kubernetes ConfigMap/Secret symlink swaps).
func InitController ¶ added in v2.1.21
func InitController(conf *config.Config, configPath string) (*api.Controller, *HotReloader, error)
InitController creates a controller, initializes it, then starts the config hot-reloader. On init failure it shuts down the controller and stops the reloader before returning. After a successful return the caller must stop both the controller and the hot reloader.
func NewHotReloader ¶
func NewHotReloader(ctlr *api.Controller, filePath, ldapCredentialsPath string) *HotReloader
func (*HotReloader) Start ¶
func (hr *HotReloader) Start()
func (*HotReloader) Stop ¶ added in v2.1.21
func (hr *HotReloader) Stop()
Click to show internal directories.
Click to hide internal directories.