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

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, tcp+tls, 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
v17.12.1-ce-rc1+incompatible
Published
Feb 13, 2018
Platform
js/wasm
Imports
2 packages
Last checked
6 hours ago

Tools for package owners.