package urlutil

import "github.com/docker/docker/pkg/urlutil"

Index

Functions

func IsGitTransport

func IsGitTransport(str string) bool

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

func IsGitURL(str string) bool

IsGitURL returns true if the provided str is a git repository URL.

func IsTransportURL

func IsTransportURL(str string) bool

IsTransportURL returns true if the provided str is a transport (tcp, udp, unix) URL.

func IsURL

func IsURL(str string) bool

IsURL returns true if the provided str is an HTTP(S) URL.

Source Files

urlutil.go

Version
v1.7.0
Published
Jun 18, 2015
Platform
js/wasm
Imports
2 packages
Last checked
54 minutes ago

Tools for package owners.