package urlutil
import "github.com/docker/cli/components/engine/pkg/urlutil"
Package urlutil provides helper function to check urls kind. It supports http urls, git urls and transport url (tcp://, …)
Index ¶
Functions ¶
func IsGitURL ¶
IsGitURL returns true if the provided str is a git repository URL.
func IsTransportURL ¶
IsTransportURL returns true if the provided str is a transport (tcp, tcp+tls, udp, unix) URL.
func IsURL ¶
IsURL returns true if the provided str is an HTTP(S) URL.
Source Files ¶
- Version
- v17.12.0-ce-rc2+incompatible
- Published
- Dec 12, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.