func defaultScheme(host string) string {
	if h, _, err := net.SplitHostPort(host); err == nil {
		host = h
	}
	if host == "localhost" || host == "127.0.0.1" || host == "::1" {
		return "http"
	}
	return "https"
}
// defaultScheme returns the default scheme for a registry host.
// Ported from https://github.com/containerd/containerd/blob/v1.5.2/pkg/cri/server/image_pull.go#L316-L330
// TODO: import this from CRI package once we drop support to continerd v1.4.x
defaultScheme returns the default scheme for a registry host.
// defaultScheme returns the default scheme for a registry host . // Ported from https : // github . com / containerd / containerd / blob / v1 . 5 . 2 / pkg / cri / server / image_pull . go#L316 - L330 // TODO : import this from CRI package once we drop support to continerd v1 . 4 . x
func defaultScheme(host string) string {
	if h, _, err := net.SplitHostPort(host); err == nil {
		host = h
	}
	if host == "localhost" || host == "127.0.0.1" || host == "::1" {
		return "http"
	}
	return "https"
}
func defaultScheme ( host string ) string { if h , _ , err := net . SplitHostPort ( host ) ; err == nil { host = h } if host == " " || host == " " || host == " " { return " " } return " " }
defaultScheme returns the default scheme for a registry host.
defaultScheme returns the default scheme for a registry host .