image

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals added in v1.0.9

func Equals(img1 *Reference, img2 *Reference) bool

Equals determines if two image references are equal.

Types

type Dependencies

type Dependencies struct {
	Image     *Reference    `json:"image"`
	Runtime   *Reference    `json:"runtime-dependency"`
	Buildtime []*Reference  `json:"buildtime-dependency"`
	Git       *GitReference `json:"git,omitempty"`
}

Dependencies denotes Docker image dependencies.

type GitReference

type GitReference struct {
	GitHeadRev string `json:"git-head-revision"`
}

GitReference defines the reference to git source code

type Reference

type Reference struct {
	Registry   string `json:"registry"`
	Repository string `json:"repository"`
	Tag        string `json:"tag,omitempty"`
	Digest     string `json:"digest"`
	Reference  string `json:"reference"`
}

Reference defines the reference to a Docker image

func (*Reference) String

func (i *Reference) String() string

String returns a string representation of an ImageReference.

Jump to

Keyboard shortcuts

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