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
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.