Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.8% on proxy.golang.org

proxy.golang.org : github.com/rogpeppe/ocitestregistry

Package ociregistry provides an abstraction that represents the capabilities provided by an OCI registry. See the OCI distribution specification for more information on OCI registries. Packages within this module provide the capability to translate to and from the HTTP protocol documented in that specification: - github.com/rogpeppe/ociregistry/ociclient provides an Interface value that acts as an HTTP client. - github.com/rogpeppe/ociregistry/ociserver provides an HTTP server that serves the distribution protocol by making calls to an arbitrary Interface value. When used together in a stack, the above two packages can be used to provide a simple proxy server. The github.com/rogpeppe/ociregistry/ocimem package provides a trivial in-memory implementation of the interface. Other packages provide some utilities that manipulate Interface values: - github.com/rogpeppe/ociregistry/ocifilter provides functionality for exposing modified or restricted views onto a registry. - github.com/rogpeppe/ociregistry/ociunify can combine two registries into one unified view across both. In general, the caller cannot assume that the implementation of a given Interface value is present on the network. For example, github.com/rogpeppe/ociregistry/ocimem doesn't know about the network at all. But there are times when an implementation might want to provide information about the location of blobs or manifests so that a client can go direct if it wishes. That is, a proxy might not wish to ship all the traffic for all blobs through itself, but instead redirect clients to talk to some other location on the internet. When an Interface implementation wishes to provide that information, it can do so by setting the `URLs` field on the descriptor that it returns for a given blob or manifest. Although it is not mandatory for a caller to use this, some callers (specifically the ociserver package) can use this information to redirect clients appropriately.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rogpeppe/ocitestregistry
License: Apache-2.0
Status: removed
Latest release: about 1 month ago
Namespace: github.com/rogpeppe
Stars: 16 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago