dockerimage

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Registry     string
	Namespace    string
	Repository   string
	Tag          string
	Architecture string
}

Image represents a Docker Image to be initialized with respect to the default conventions as per https://docs.docker.com/engine/reference/commandline/tag/#extended-description

func New

func New(imageFullName, architecture string) (*Image, error)

New returns an initialized Image object. If it fails, then the returned Image is empty and an error is returned

func (*Image) FullName

func (i *Image) FullName() string

FullName returns the strings (humanly readable) representation of the image

func (*Image) Validate

func (i *Image) Validate() error

Validate validates the object and returns an error (with all the failed validation messages) if it is not valid

Jump to

Keyboard shortcuts

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