reference

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FamiliarString added in v0.2.0

func FamiliarString(ref reference.Reference, opts ...ParseOpt) string

func MatchNamed

func MatchNamed(ref reference.Named, pattern string) bool

MatchNamed compares a reference.Named against a pattern string.

func ParseNormalizedNamed

func ParseNormalizedNamed(s string, opts ...ParseOpt) (reference.Named, error)

ParseNormalizedNamed is forked from github.com/distribution/reference, and performs the same operation, with the exception of being able to modify the default domain.

Types

type ParseOpt

type ParseOpt func(*parseOptions)

func WithDefaultDomain

func WithDefaultDomain(domain string) ParseOpt

func WithDefaultPrefix

func WithDefaultPrefix(prefix string) ParseOpt

Jump to

Keyboard shortcuts

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