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 HasSource(info content.Info, refspec reference.Spec) (bool, error)
- func IngesterFromRef(ref string) (content.Ingester, error)
- func NewStoreWithProvider(cs content.Store, p content.Provider) content.Store
- func ProviderFromRef(ref string) (ocispecs.Descriptor, content.Provider, error)
- func RegisterContentPayloadTypes(ctx context.Context) context.Context
- type Buffer
- type MultiProvider
- func (mp *MultiProvider) Add(dgst digest.Digest, p content.InfoReaderProvider)
- func (mp *MultiProvider) Info(ctx context.Context, dgst digest.Digest) (content.Info, 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
- func (mp *MultiProvider) UnlazySession(desc ocispecs.Descriptor) session.Group
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoreWithProvider ¶ added in v0.13.0
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.InfoReaderProvider) *MultiProvider
NewMultiProvider creates a new mutable provider with a base provider
func (*MultiProvider) Add ¶
func (mp *MultiProvider) Add(dgst digest.Digest, p content.InfoReaderProvider)
Add adds a new child provider for a specific digest
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
func (*MultiProvider) UnlazySession ¶ added in v0.11.2
func (mp *MultiProvider) UnlazySession(desc ocispecs.Descriptor) session.Group
Click to show internal directories.
Click to hide internal directories.