func WithLabels(labels map[string]string) Opt {
	return func(c *Config) error {
		c.Labels = labels
		return nil
	}
}
WithLabels is used to set content labels on the created diff content.
package diff
import (
	"context"
	"github.com/containerd/containerd/mount"
	"github.com/gogo/protobuf/types"
	ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
type Config struct {
	MediaType string
	Reference string
	Labels map[string]string
}
type Opt func(*Config) error
type Comparer interface {
	Compare(ctx context.Context, lower, upper []mount.Mount, opts ...Opt) (ocispec.Descriptor, error)
}
type ApplyConfig struct {
	ProcessorPayloads map[string]*types.Any
}
type ApplyOpt func(context.Context, ocispec.Descriptor, *ApplyConfig) error
type Applier interface {
	Apply(ctx context.Context, desc ocispec.Descriptor, mount []mount.Mount, opts ...ApplyOpt) (ocispec.Descriptor, error)
}
func WithMediaType(m string) Opt {
	return func(c *Config) error {
		c.MediaType = m
		return nil
	}
}
func WithReference(ref string) Opt {
	return func(c *Config) error {
		c.Reference = ref
		return nil
	}
}