package urlutil
import "github.com/docker/docker/pkg/urlutil"
Package urlutil provides helper function to check urls kind. It supports http urls, git urls and transport url (tcp://, …)
Index ¶
- func IsGitTransport(str string) bool
- func IsGitURL(str string) bool
- func IsTransportURL(str string) bool
- func IsURL(str string) bool
Functions ¶
func IsGitTransport ¶
IsGitTransport returns true if the provided str is a git transport by inspecting the prefix of the string for known protocols used in git.
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
- v1.11.2
- Published
- Jun 1, 2016
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.