docker

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Repository string
	Tags       []TagInfo
}

ImageInfo information about a docker image.

func GetImageInfos

func GetImageInfos(archivePath string) ([]ImageInfo, error)

func (*ImageInfo) GetImageRefs

func (i *ImageInfo) GetImageRefs() []string

TODO: do we need this function GetImageRefs creates a slice of all the image refs, where an image ref is Repository:Tag.

func (*ImageInfo) String

func (i *ImageInfo) String() string

type ImageRef

type ImageRef struct {
	Repository string
	Tag        string
}

ImageRef the repo and tag for one image.

func (*ImageRef) String

func (i *ImageRef) String() string

type TagInfo

type TagInfo struct {
	Tag string
	// ID docker image ID
	ID string
}

TagInfo information about an image tag.

Jump to

Keyboard shortcuts

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