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
}
Options holds configuration for the unified registry.
type ReadPolicy ¶
type ReadPolicy int
ReadPolicy determines how the unified registry reads from its two backends.
const ( // ReadSequential reads from both backends sequentially. ReadSequential ReadPolicy = iota // ReadConcurrent reads from both backends concurrently. ReadConcurrent )
Click to show internal directories.
Click to hide internal directories.