mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
8774804ca7
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
22 lines
434 B
Go
22 lines
434 B
Go
package exporter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/moby/buildkit/cache"
|
|
)
|
|
|
|
type Exporter interface {
|
|
Resolve(context.Context, map[string]string) (ExporterInstance, error)
|
|
}
|
|
|
|
type ExporterInstance interface {
|
|
Name() string
|
|
Export(ctx context.Context, src Source, sessionID string) (map[string]string, error)
|
|
}
|
|
|
|
type Source struct {
|
|
Ref cache.ImmutableRef
|
|
Refs map[string]cache.ImmutableRef
|
|
Metadata map[string][]byte
|
|
}
|