mirror of
https://github.com/containers/skopeo.git
synced 2026-07-13 20:52:53 +00:00
Pull most of the core logic from the CLI into a package that should be easier to consume as a library. Add a "config" command that updates the builder object's configuration. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
19 lines
365 B
Go
19 lines
365 B
Go
package buildah
|
|
|
|
import (
|
|
"github.com/containers/image/copy"
|
|
"github.com/containers/image/types"
|
|
)
|
|
|
|
func getCopyOptions() *copy.Options {
|
|
return ©.Options{}
|
|
}
|
|
|
|
func getSystemContext(signaturePolicyPath string) *types.SystemContext {
|
|
sc := &types.SystemContext{}
|
|
if signaturePolicyPath != "" {
|
|
sc.SignaturePolicyPath = signaturePolicyPath
|
|
}
|
|
return sc
|
|
}
|