github.com/rumpl/bof@v23.0.0-rc.2+incompatible/pkg/urlutil/deprecated.go (about) 1 package urlutil // import "github.com/docker/docker/pkg/urlutil" 2 3 import "github.com/docker/docker/builder/remotecontext/urlutil" 4 5 // IsURL returns true if the provided str is an HTTP(S) URL. 6 // 7 // Deprecated: use github.com/docker/docker/builder/remotecontext/urlutil.IsURL 8 // to detect build-context type, or use strings.HasPrefix() to check if the 9 // string has a https:// or http:// prefix. 10 func IsURL(str string) bool { 11 // TODO(thaJeztah) when removing this alias, remove the exception from hack/validate/pkg-imports and hack/make.ps1 (Validate-PkgImports) 12 return urlutil.IsURL(str) 13 } 14 15 // IsGitURL returns true if the provided str is a git repository URL. 16 // 17 // Deprecated: use github.com/docker/docker/builder/remotecontext/urlutil.IsGitURL 18 func IsGitURL(str string) bool { 19 // TODO(thaJeztah) when removing this alias, remove the exception from hack/validate/pkg-imports and hack/make.ps1 (Validate-PkgImports) 20 return urlutil.IsGitURL(str) 21 }