package urlutil

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

Index

Functions

func IsGitURL

func IsGitURL(str string) bool

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

Deprecated: use github.com/docker/docker/builder/remotecontext/urlutil.IsGitURL

func IsURL

func IsURL(str string) bool

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

Deprecated: use github.com/docker/docker/builder/remotecontext/urlutil.IsURL to detect build-context type, or use strings.HasPrefix() to check if the string has a https:// or http:// prefix.

Source Files

deprecated.go

Version
v23.0.7+incompatible
Published
Sep 6, 2023
Platform
js/wasm
Imports
1 packages
Last checked
5 minutes ago

Tools for package owners.