Versions in this module Expand all Collapse all v1 v1.3.4 Apr 16, 2020 v1.0.0 May 17, 2020 Changes in this version + func Copy(ctx context.Context, cw Writer, r io.Reader, size int64, ...) error + func CopyReader(cw Writer, r io.Reader) (int64, error) + func CopyReaderAt(cw Writer, ra ReaderAt, n int64) error + func NewReader(ra ReaderAt) io.Reader + func ReadBlob(ctx context.Context, provider Provider, desc ocispec.Descriptor) ([]byte, error) + func WriteBlob(ctx context.Context, cs Ingester, ref string, r io.Reader, ...) error + type Info struct + CreatedAt time.Time + Digest digest.Digest + Labels map[string]string + Size int64 + UpdatedAt time.Time + type IngestManager interface + Abort func(ctx context.Context, ref string) error + ListStatuses func(ctx context.Context, filters ...string) ([]Status, error) + Status func(ctx context.Context, ref string) (Status, error) + type Ingester interface + Writer func(ctx context.Context, opts ...WriterOpt) (Writer, error) + type Manager interface + Delete func(ctx context.Context, dgst digest.Digest) error + Info func(ctx context.Context, dgst digest.Digest) (Info, error) + Update func(ctx context.Context, info Info, fieldpaths ...string) (Info, error) + Walk func(ctx context.Context, fn WalkFunc, filters ...string) error + type Opt func(*Info) error + func WithLabels(labels map[string]string) Opt + type Provider interface + ReaderAt func(ctx context.Context, dec ocispec.Descriptor) (ReaderAt, error) + type ReaderAt interface + Size func() int64 + type Status struct + Expected digest.Digest + Offset int64 + Ref string + StartedAt time.Time + Total int64 + UpdatedAt time.Time + type Store interface + type WalkFunc func(Info) error + type Writer interface + Commit func(ctx context.Context, size int64, expected digest.Digest, opts ...Opt) error + Digest func() digest.Digest + Status func() (Status, error) + Truncate func(size int64) error + func OpenWriter(ctx context.Context, cs Ingester, opts ...WriterOpt) (Writer, error) + type WriterOpt func(*WriterOpts) error + func WithDescriptor(desc ocispec.Descriptor) WriterOpt + func WithRef(ref string) WriterOpt + type WriterOpts struct + Desc ocispec.Descriptor + Ref string