mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
enable gofumpt formatter
Based on our discussion gofumpt won the vote so use that one via golangci-lint. https://github.com/containers/podman/discussions/27291 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -27,17 +27,13 @@ type PullOptions struct {
|
||||
Quiet bool
|
||||
}
|
||||
|
||||
var (
|
||||
// noSignaturePolicy is a default policy if policy.json is not found on
|
||||
// the host machine.
|
||||
noSignaturePolicy string = `{"default":[{"type":"insecureAcceptAnything"}]}`
|
||||
)
|
||||
// noSignaturePolicy is a default policy if policy.json is not found on
|
||||
// the host machine.
|
||||
var noSignaturePolicy string = `{"default":[{"type":"insecureAcceptAnything"}]}`
|
||||
|
||||
// Pull `imageInput` from a container registry to `sourcePath`.
|
||||
func Pull(ctx context.Context, imageInput types.ImageReference, localDestPath *define.VMFile, options *PullOptions) error {
|
||||
var (
|
||||
policy *signature.Policy
|
||||
)
|
||||
var policy *signature.Policy
|
||||
destRef, err := layout.ParseReference(localDestPath.GetPath())
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user