referenceutil

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoadOCIArchiveRequired = errors.New("image must be loaded from archive before parsing image reference")

Functions

This section is empty.

Types

type ImageReference

type ImageReference struct {
	Protocol    Protocol
	Digest      digest.Digest
	Tag         string
	ExplicitTag string
	Path        string
	Domain      string
	// contains filtered or unexported fields
}

func Parse

func Parse(rawRef string) (*ImageReference, error)

func (*ImageReference) FamiliarMatch

func (ir *ImageReference) FamiliarMatch(pattern string) (bool, error)

func (*ImageReference) FamiliarName

func (ir *ImageReference) FamiliarName() string

func (*ImageReference) Name

func (ir *ImageReference) Name() string

func (*ImageReference) String

func (ir *ImageReference) String() string

func (*ImageReference) SuggestContainerName

func (ir *ImageReference) SuggestContainerName(suffix string) string

type Protocol

type Protocol string
const IPFSProtocol Protocol = "ipfs"
const IPNSProtocol Protocol = "ipns"

Jump to

Keyboard shortcuts

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