mirror of
https://github.com/containers/skopeo.git
synced 2026-02-03 15:58:52 +00:00
golang-bin-1.8.1-1.fc26.x86_64 gcc-go-7.1.1-1.fc26.x86_64 Signed-off-by: Dan Walsh <dwalsh@redhat.com> Closes: #135 Approved by: nalind
23 lines
425 B
Go
23 lines
425 B
Go
package buildah
|
|
|
|
import (
|
|
"io"
|
|
|
|
cp "github.com/containers/image/copy"
|
|
"github.com/containers/image/types"
|
|
)
|
|
|
|
func getCopyOptions(reportWriter io.Writer) *cp.Options {
|
|
return &cp.Options{
|
|
ReportWriter: reportWriter,
|
|
}
|
|
}
|
|
|
|
func getSystemContext(signaturePolicyPath string) *types.SystemContext {
|
|
sc := &types.SystemContext{}
|
|
if signaturePolicyPath != "" {
|
|
sc.SignaturePolicyPath = signaturePolicyPath
|
|
}
|
|
return sc
|
|
}
|