contentutil

package
v0.0.0-...-5b499d5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, ingester content.Ingester, provider content.Provider, desc ocispec.Descriptor) error

func FromFetcher

func FromFetcher(f remotes.Fetcher, desc ocispec.Descriptor) content.Provider

Types

type Buffer

type Buffer interface {
	content.Provider
	content.Ingester
}

Buffer is a content provider and ingester that keeps data in memory

func NewBuffer

func NewBuffer() Buffer

NewBuffer returns a new buffer

type MultiProvider

type MultiProvider struct {
	// contains filtered or unexported fields
}

func NewMultiProvider

func NewMultiProvider(base content.Provider) *MultiProvider

func (*MultiProvider) Add

func (mp *MultiProvider) Add(dgst digest.Digest, p content.Provider)

func (*MultiProvider) ReaderAt

func (mp *MultiProvider) ReaderAt(ctx context.Context, dgst digest.Digest) (content.ReaderAt, error)

Jump to

Keyboard shortcuts

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