buildkit/exporter/exporter.go

23 lines
434 B
Go
Raw Normal View History

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
}