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.10.0-ce-rc1+incompatible
- Published
- Oct 4, 2017
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 6 minutes ago –
Tools for package owners.