dockerfileurl

package
v0.4.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dockerfileurl classifies Dockerfile URLs and makes them safe to display.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForDisplay

func ForDisplay(value string) string

ForDisplay removes sensitive URL components from HTTP(S) Dockerfile values and leaves local paths unchanged.

func ForRequestError

func ForRequestError(value string) string

ForRequestError removes sensitive components from an absolute or relative URL reference returned by net/http.

func IsURL

func IsURL(value string) bool

IsURL reports whether value is an HTTP(S) URL.

func LooksLikeURL

func LooksLikeURL(value string) bool

LooksLikeURL reports whether value starts with an HTTP(S) scheme, including malformed values that should fail closed instead of being treated as paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL