image

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reference

type Reference struct {
	// contains filtered or unexported fields
}

Reference .

func NewReference

func NewReference(name string) (*Reference, error)

NewReference parses the image name and returns an error if the name is invalid.

func (Reference) GetContentTrustURL

func (r Reference) GetContentTrustURL() (string, error)

GetContentTrustURL returns the Content Trust URL.

func (Reference) GetDigest

func (r Reference) GetDigest() string

GetDigest returns the digest.

func (Reference) GetHostname

func (r Reference) GetHostname() string

GetHostname returns the repository hostname of an image

func (Reference) GetPort

func (r Reference) GetPort() string

GetPort returns the port of the hostname.

func (Reference) GetRegistryURL

func (r Reference) GetRegistryURL() string

GetRegistryURL returns the Registry URL.

func (Reference) GetTag

func (r Reference) GetTag() string

GetTag returns the tag.

func (Reference) HasIBMRepo

func (r Reference) HasIBMRepo() bool

HasIBMRepo returns true if the image has an IBM repository, otherwise false.

func (Reference) NameWithTag

func (r Reference) NameWithTag() string

NameWithTag returns the image name with the tag.

func (Reference) NameWithoutTag

func (r Reference) NameWithoutTag() string

NameWithoutTag returns the image name without the tag.

func (Reference) String

func (r Reference) String() string

String returns the original image name.

Jump to

Keyboard shortcuts

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