docker: github.com/docker/docker/pkg/urlutil Index | Files

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

Package Files

urlutil.go

func IsGitURL Uses

func IsGitURL(str string) bool

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

func IsTransportURL Uses

func IsTransportURL(str string) bool

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

func IsURL Uses

func IsURL(str string) bool

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

Package urlutil imports 2 packages (graph) and is imported by 3932 packages. Updated 2018-06-08. Refresh now. Tools for package owners.