mirror of
https://github.com/containers/skopeo.git
synced 2025-09-20 17:38:25 +00:00
(skopeo copy) and (skopeo sync) now support --sign-by-sigstore=param-file, using the containers-sigstore-signing-params.yaml(5) file format. That notably adds support for Fulcio and Rekor signing. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
15 lines
194 B
Go
15 lines
194 B
Go
//go:build go1.19
|
|
// +build go1.19
|
|
|
|
package spec
|
|
|
|
import "net/url"
|
|
|
|
func parseURL(s string) (*url.URL, error) {
|
|
u, err := url.Parse(s)
|
|
if err == nil {
|
|
u.OmitHost = false
|
|
}
|
|
return u, err
|
|
}
|