2017-07-10 20:03:38 +00:00
|
|
|
package exporter
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/moby/buildkit/cache"
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Exporter interface {
|
|
|
|
Resolve(context.Context, map[string]string) (ExporterInstance, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type ExporterInstance interface {
|
2017-07-11 00:56:04 +00:00
|
|
|
Name() string
|
2017-10-03 06:33:25 +00:00
|
|
|
Export(context.Context, cache.ImmutableRef, map[string][]byte) error
|
2017-07-10 20:03:38 +00:00
|
|
|
}
|