image

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReferencesEquals

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

ReferencesEquals 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