mirror of
https://github.com/mudler/luet.git
synced 2025-08-26 02:49:02 +00:00
Optionally add back privileged extraction which can be enabled with LUET_PRIVILEGED_EXTRACT=true Signed-off-by: Ettore Di Giacinto <mudler@sabayon.org>
23 lines
408 B
Go
23 lines
408 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(context.Context, Source) (map[string]string, error)
|
|
}
|
|
|
|
type Source struct {
|
|
Ref cache.ImmutableRef
|
|
Refs map[string]cache.ImmutableRef
|
|
Metadata map[string][]byte
|
|
}
|