images

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindImage

func FindImage(store storage.Store, image string) (*storage.Image, error)

FindImage searches for a *storage.Image with a matching the given name or ID in the given store.

func FindImageRef

func FindImageRef(store storage.Store, image string) (types.Image, error)

FindImageRef searches for and returns a new types.Image matching the given name or ID in the given store.

func ParseImageNames

func ParseImageNames(names []string) (tags, digests []string, err error)

ParseImageNames parses the names we've stored with an image into a list of tagged references and a list of references which contain digests.

Types

type Data

type Data struct {
	ID           string
	Tags         []string
	Digests      []string
	Digest       digest.Digest
	Comment      string
	Created      *time.Time
	Container    string
	Author       string
	Config       ociv1.ImageConfig
	Architecture string
	OS           string
	Annotations  map[string]string
	CreatedBy    string
	Size         uint
	VirtualSize  uint
	GraphDriver  driver.Data
	RootFS       ociv1.RootFS
}

Data handles the data used when inspecting a container nolint

func GetData

func GetData(store storage.Store, name string) (*Data, error)

GetData gets the Data for a container with the given name in the given store.

Jump to

Keyboard shortcuts

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