oci

package
v0.0.0-...-300ac43 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlob

func AddBlob(ctx context.Context, peer p2plab.Peer, r io.Reader, opts ...p2plab.AddOption) (digest.Digest, error)

func BuildManifestHandler

func BuildManifestHandler(f images.HandlerFunc, peer p2plab.Peer, provider content.Provider, callback func(ocispec.Descriptor), opts ...p2plab.AddOption) images.HandlerFunc

func ConstructDAGFromManifest

func ConstructDAGFromManifest(ctx context.Context, p p2plab.Peer, image ocispec.Descriptor, opts ...p2plab.AddOption) (ipld.Node, error)

func Convert

func Convert(ctx context.Context, peer p2plab.Peer, fetcher remotes.Fetcher, store content.Store, desc ocispec.Descriptor, opts ...p2plab.AddOption) (target ocispec.Descriptor, err error)

func ConvertHandler

func ConvertHandler(conversions map[digest.Digest]ocispec.Descriptor, peer p2plab.Peer, fetcher remotes.Fetcher, store content.Store, opts ...p2plab.AddOption) images.HandlerFunc

func DispatchConvertHandler

func DispatchConvertHandler(f images.HandlerFunc, peer p2plab.Peer, fetcher remotes.Fetcher, store content.Store, opts ...p2plab.AddOption) images.HandlerFunc

func New

func New(root string, client *http.Client) (p2plab.Transformer, error)

func NewProvider

func NewProvider(peer p2plab.Peer) content.Provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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