ref

package
v3.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArchiveSchema  = "archive:"
	RegistrySchema = "docker://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	*ArchiveAddress
	*RegistryAddress
}

func ParseAddr

func ParseAddr(addr string) (*Addr, error)

func (*Addr) String

func (addr *Addr) String() string

type ArchiveAddress

type ArchiveAddress struct {
	Path string
}

type Reference

type Reference struct {
	Tag  string
	Repo string
}

Reference defines the main components of a reference specification

func ParseReference

func ParseReference(s string) (*Reference, error)

ParseReference converts a string to a Reference

func (*Reference) FullName

func (ref *Reference) FullName() string

FullName the full name of a reference (repo:tag)

type RegistryAddress

type RegistryAddress struct {
	*Reference
}

Jump to

Keyboard shortcuts

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