Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v2.1.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfiguration

func LoadConfiguration(config *config.Config, configPath string) error

func NewServerRootCmd

func NewServerRootCmd() *cobra.Command

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL