2014-12-02 01:36:20 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "net/http/pprof"
|
|
|
|
|
2020-08-24 11:18:39 +00:00
|
|
|
"github.com/distribution/distribution/v3/registry"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/auth/htpasswd"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/auth/silly"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/auth/token"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/proxy"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/azure"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/filesystem"
|
2023-08-30 05:34:14 +00:00
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/frostfs"
|
2020-08-24 11:18:39 +00:00
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/gcs"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/inmemory"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/middleware/cloudfront"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/middleware/redirect"
|
|
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/s3-aws"
|
2014-12-02 01:36:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-11-18 06:50:40 +00:00
|
|
|
// NOTE(milosgajdos): if the only two commands registered
|
|
|
|
// with registry.RootCmd fail they will halt the program
|
|
|
|
// execution and exit the program with non-zero exit code.
|
|
|
|
// nolint:errcheck
|
2016-01-19 22:26:15 +00:00
|
|
|
registry.RootCmd.Execute()
|
2014-12-02 01:36:20 +00:00
|
|
|
}
|