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:
20
internal/opt/opt.go
Normal file
20
internal/opt/opt.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package opt
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
)
|
||||
|
||||
var (
|
||||
GlobalDebug bool
|
||||
GlobalAddress string
|
||||
GlobalDataDir string
|
||||
)
|
||||
|
||||
func Init(ctx context.Context) error {
|
||||
if err := os.MkdirAll(GlobalDataDir, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user