Documentation ¶
Index ¶
- type Image
- type ImageState
- func (imageState *ImageState) AddImageName(imageName string)
- func (imageState *ImageState) HasImageName(containerImageName string) bool
- func (imageState *ImageState) HasNoAssociatedContainers() bool
- func (imageState *ImageState) RemoveContainerReference(container *api.Container) error
- func (imageState *ImageState) RemoveImageName(containerImageName string)
- func (imageState *ImageState) UpdateContainerReference(container *api.Container)
- func (imageState *ImageState) UpdateImageState(container *api.Container)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) HasImageName ¶
func (imageState *ImageState) HasImageName(containerImageName string) bool
func (*ImageState) HasNoAssociatedContainers ¶
func (imageState *ImageState) HasNoAssociatedContainers() bool
func (*ImageState) RemoveContainerReference ¶
func (imageState *ImageState) RemoveContainerReference(container *api.Container) error
func (*ImageState) RemoveImageName ¶
func (imageState *ImageState) RemoveImageName(containerImageName string)
func (*ImageState) UpdateContainerReference ¶
func (imageState *ImageState) UpdateContainerReference(container *api.Container)
func (*ImageState) UpdateImageState ¶
func (imageState *ImageState) UpdateImageState(container *api.Container)
Click to show internal directories.
Click to hide internal directories.