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 IsURL

func IsURL(str string) bool

IsURL returns true if the provided str is a valid URL by doing a simple change for the transport of the url.

Source Files

git.go url.go

Version
v1.5.0-rc1
Published
Jan 22, 2015
Platform
js/wasm
Imports
1 packages
Last checked
34 minutes ago

Tools for package owners.