image

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 7 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 {
	ImageID string
	Names   []string
	Size    int64
}

func (*Image) String added in v1.14.3

func (image *Image) String() string

type ImageState

type ImageState struct {
	Image      *Image
	Containers []*api.Container `json:"-"`
	PulledAt   time.Time
	LastUsedAt time.Time
	// contains filtered or unexported fields
}

ImageState represents a docker image and its state information such as containers associated with it

func (*ImageState) AddImageName

func (imageState *ImageState) AddImageName(imageName string)

func (*ImageState) GetImageNamesCount added in v1.14.4

func (imageState *ImageState) GetImageNamesCount() int

func (*ImageState) HasImageName

func (imageState *ImageState) HasImageName(containerImageName string) bool

func (*ImageState) HasNoAssociatedContainers

func (imageState *ImageState) HasNoAssociatedContainers() bool

func (*ImageState) MarshalJSON added in v1.14.1

func (imageState *ImageState) MarshalJSON() ([]byte, error)

func (*ImageState) RemoveContainerReference

func (imageState *ImageState) RemoveContainerReference(container *api.Container) error

func (*ImageState) RemoveImageName

func (imageState *ImageState) RemoveImageName(containerImageName string)

func (*ImageState) String added in v1.14.3

func (imageState *ImageState) String() string

func (*ImageState) UpdateContainerReference

func (imageState *ImageState) UpdateContainerReference(container *api.Container)

func (*ImageState) UpdateImageState

func (imageState *ImageState) UpdateImageState(container *api.Container)

Jump to

Keyboard shortcuts

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