names

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendDigest

func AppendDigest(ref NamedRepository, d digest.Digest) reference.Canonical

AppendDigest appends a digest to a named repository

Types

type NamedRepository

type NamedRepository interface {
	reference.Named
	Domain() string
	Path() string
}

NamedRepository is a represents a image refererence where the Name evaluates to the repository name with out the domain

func SeperateRepository

func SeperateRepository(ref reference.Named) NamedRepository

SeperateRepository converts a named into a named where the output of the Name() function will not have the domain as a prefix

func TrimNamed

func TrimNamed(ref reference.Named) NamedRepository

TrimNamed removes a tag from a Named

type NamedTaggedRepository

type NamedTaggedRepository interface {
	reference.NamedTagged
	Domain() string
	Path() string
}

NamedTaggedRepository is a represents a image refererence where the Name evaluates to the repository name with out the domain

func CastToTagged

func CastToTagged(ref reference.Named) (NamedTaggedRepository, error)

CastToTagged converts a Named into a NamedTaggedRepository, choosing the default "latest" tag if necessary

func SeperateTaggedRepository

func SeperateTaggedRepository(ref reference.NamedTagged) NamedTaggedRepository

SeperateTaggedRepository converts a named into a named where the output of the Name() method will not have the domain as a prefix

Jump to

Keyboard shortcuts

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