ocireg

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 5

README

Repository OCIRegistry and ociRegistry - OCI Registry based OCM Repositories

Synopsis
type: OCIRegistry/v1
Description

The content of the OCM repository will be stored in an OCI registry using a dedicated OCI repository name prefix.

Supported specification version is v1.

Specification Versions
Version v1

The type specific specification fields are:

  • baseUrl string

    OCI repository reference, containing the host part and the repository prefix as path

  • legacyTypes (optional) bool

    OCI repository requires docker legacy mime types for OCI image manifests. (automatically enabled for docker.io)

    docker.io cannot be used to host an OCM repository because is provides a fixed number of levels for repository names (2).

Go Bindings

The Go binding can be found here.

Documentation

Index

Constants

View Source
const (
	Type   = genericocireg.Type
	TypeV1 = genericocireg.TypeV1

	OCIRegistryURLPathMapping ComponentNameMapping = "urlPath"
	OCIRegistryDigestMapping  ComponentNameMapping = "sha256-digest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentNameMapping

type ComponentNameMapping = genericocireg.ComponentNameMapping

ComponentNameMapping describes the method that is used to map the "Component Name", "Component Version"-tuples to OCI Image References.

type ComponentRepositoryMeta

type ComponentRepositoryMeta = genericocireg.ComponentRepositoryMeta

ComponentRepositoryMeta describes config special for a mapping of a component repository to an oci registry.

func NewComponentRepositoryMeta

func NewComponentRepositoryMeta(subPath string, mapping ComponentNameMapping) *ComponentRepositoryMeta

type RepositorySpec

type RepositorySpec = genericocireg.RepositorySpec

RepositorySpec describes a component repository backed by a oci registry.

func NewRepositorySpec

func NewRepositorySpec(baseURL string, meta *ComponentRepositoryMeta) *RepositorySpec

NewRepositorySpec creates a new RepositorySpec.

Jump to

Keyboard shortcuts

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