feat: complete OCI registry implementation with docker push/pull support

A lightweight OCI (Open Container Initiative) registry implementation written in Go.
This commit is contained in:
loveuer
2025-11-09 22:46:27 +08:00
commit 29088a6b54
45 changed files with 5629 additions and 0 deletions

24
main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"context"
"log"
"os/signal"
"syscall"
"time"
"gitea.loveuer.com/loveuer/cluster/internal/cmd"
)
func init() {
time.LoadLocation("Asia/Shanghai")
}
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
if err := cmd.Run(ctx); err != nil {
log.Fatalf("Failed to run command: %v", err)
}
}