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 + var ErrNoProcessor = errors.New("no processor for media-type") + func RegisterProcessor(handler Handler) + type Applier interface + Apply func(ctx context.Context, desc ocispec.Descriptor, mount []mount.Mount, ...) (ocispec.Descriptor, error) + type ApplyConfig struct + ProcessorPayloads map[string]*types.Any + type ApplyOpt func(context.Context, ocispec.Descriptor, *ApplyConfig) error + func WithPayloads(payloads map[string]*types.Any) ApplyOpt + type Comparer interface + Compare func(ctx context.Context, lower, upper []mount.Mount, opts ...Opt) (ocispec.Descriptor, error) + type Config struct + Labels map[string]string + MediaType string + Reference string + type Handler func(ctx context.Context, mediaType string) (StreamProcessorInit, bool) + func BinaryHandler(id, returnsMediaType string, mediaTypes []string, path string, args []string) Handler + func StaticHandler(expectedMediaType string, fn StreamProcessorInit) Handler + type Opt func(*Config) error + func WithLabels(labels map[string]string) Opt + func WithMediaType(m string) Opt + func WithReference(ref string) Opt + type RawProcessor interface + File func() *os.File + type StreamProcessor interface + MediaType func() string + func GetProcessor(ctx context.Context, stream StreamProcessor, payloads map[string]*types.Any) (StreamProcessor, error) + func NewBinaryProcessor(ctx context.Context, imt, rmt string, stream StreamProcessor, name string, ...) (StreamProcessor, error) + func NewProcessorChain(mt string, r io.Reader) StreamProcessor + type StreamProcessorInit func(ctx context.Context, stream StreamProcessor, payloads map[string]*types.Any) (StreamProcessor, error)