mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
ada21ed842
Files were added to be built whether an extension is on or off. New build tags were added for each extension, while minimal and extended disappeared. added custom binary naming depending on extensions used and changed references from binary to binary-extended added automated blackbox tests for sync, search, scrub, metrics added contributor guidelines Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
23 lines
375 B
Go
23 lines
375 B
Go
//go:build !metrics
|
|
// +build !metrics
|
|
|
|
package api
|
|
|
|
import (
|
|
"zotregistry.io/zot/pkg/log"
|
|
)
|
|
|
|
type Controller struct {
|
|
Config *Config
|
|
Log log.Logger
|
|
}
|
|
|
|
func NewController(cfg *Config) *Controller {
|
|
logger := log.NewLogger(cfg.Exporter.Log.Level, cfg.Exporter.Log.Output)
|
|
|
|
return &Controller{Config: cfg, Log: logger}
|
|
}
|
|
|
|
func (c *Controller) Run() {
|
|
runExporter(c)
|
|
}
|