reference

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package reference provides general types to represent oci content within a registry or local oci layout Grammar (stolen mostly from containerd's grammar)

reference :=

Index

Constants

View Source
const (
	DefaultNamespace = "hauler"
	DefaultTag       = "latest"
)

Variables

This section is empty.

Functions

func NewTagged

func NewTagged(n string, tag string) (gname.Reference, error)

NewTagged will create a new docker.NamedTagged given a path-component

func Parse

func Parse(ref string) (gname.Reference, error)

Parse will parse a reference and return a name.Reference namespaced with DefaultNamespace if necessary

func Relocate

func Relocate(reference string, registry string) (gname.Reference, error)

Relocate returns a name.Reference given a reference and registry

Types

type Reference

type Reference interface {
	// FullName is the full name of the reference
	FullName() string

	// Name is the registryless name
	Name() string
}

Jump to

Keyboard shortcuts

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