ociregistrycuelabs.dev/go/oci/ociregistry/ociunify Index | Files

package ociunify

import "cuelabs.dev/go/oci/ociregistry/ociunify"

Package ociunify unifies two OCI registries into one.

Index

Functions

func New

New returns a registry that unifies the contents from both the given registries. If there's a conflict, (for example a tag resolves to a different thing on both repositories), it returns an error for requests that specifically read the value, or omits the conflicting item for list requests.

Writes write to both repositories. Reads of immutable data come from either.

Types

type Options

type Options struct {
	ReadPolicy ReadPolicy
}

type ReadPolicy

type ReadPolicy int
const (
	ReadSequential ReadPolicy = iota
	ReadConcurrent
)

Source Files

deleter.go lister.go reader.go unify.go writer.go

Version
v0.0.0-20241125120445-2c00c104c6e1 (latest)
Published
Nov 25, 2024
Platform
linux/amd64
Imports
9 packages
Last checked
2 months ago

Tools for package owners.