ociunify

package
v0.0.0-...-eedc705 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package ociunify unifies two OCI registries into one.

Index

Constants

This section is empty.

Variables

This section is empty.

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL