Documentation ¶
Index ¶
- func Copy(ctx context.Context, ingester content.Ingester, provider content.Provider, ...) error
- func CopyChain(ctx context.Context, ingester content.Ingester, provider content.Provider, ...) error
- func FromFetcher(f remotes.Fetcher) content.Provider
- func FromPusher(p remotes.Pusher) content.Ingester
- func IngesterFromRef(ref string) (content.Ingester, error)
- func ProviderFromRef(ref string) (ocispecs.Descriptor, content.Provider, error)
- type Buffer
- type MultiProvider
- func (mp *MultiProvider) Add(dgst digest.Digest, p content.Provider)
- func (mp *MultiProvider) CheckDescriptor(ctx context.Context, desc ocispecs.Descriptor) error
- func (mp *MultiProvider) ReaderAt(ctx context.Context, desc ocispecs.Descriptor) (content.ReaderAt, error)
- func (mp *MultiProvider) SnapshotLabels(descs []ocispecs.Descriptor, index int) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProviderFromRef ¶
Types ¶
type MultiProvider ¶
type MultiProvider struct {
// contains filtered or unexported fields
}
MultiProvider is a provider backed by a mutable map of providers
func NewMultiProvider ¶
func NewMultiProvider(base content.Provider) *MultiProvider
NewMultiProvider creates a new mutable provider with a base provider
func (*MultiProvider) Add ¶
func (mp *MultiProvider) Add(dgst digest.Digest, p content.Provider)
Add adds a new child provider for a specific digest
func (*MultiProvider) CheckDescriptor ¶ added in v0.9.1
func (mp *MultiProvider) CheckDescriptor(ctx context.Context, desc ocispecs.Descriptor) error
func (*MultiProvider) ReaderAt ¶
func (mp *MultiProvider) ReaderAt(ctx context.Context, desc ocispecs.Descriptor) (content.ReaderAt, error)
ReaderAt returns a content.ReaderAt
func (*MultiProvider) SnapshotLabels ¶ added in v0.10.0
func (mp *MultiProvider) SnapshotLabels(descs []ocispecs.Descriptor, index int) map[string]string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.