Documentation ¶
Index ¶
- type Image
- type ImageState
- func (imageState *ImageState) AddImageName(imageName string)
- func (imageState *ImageState) GetImageNamesCount() int
- func (imageState *ImageState) GetPullSucceeded() bool
- func (imageState *ImageState) HasImageName(containerImageName string) bool
- func (imageState *ImageState) HasNoAssociatedContainers() bool
- func (imageState *ImageState) MarshalJSON() ([]byte, error)
- func (imageState *ImageState) RemoveContainerReference(container *api.Container) error
- func (imageState *ImageState) RemoveImageName(containerImageName string)
- func (imageState *ImageState) SetPullSucceeded(pullSucceeded bool)
- func (imageState *ImageState) String() 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 is the image corresponding to this ImageState. Image *Image // Containers are the containers that use this image. Containers []*api.Container `json:"-"` // PulledAt is the time when this image was pulled. PulledAt time.Time // LastUsedAt is the time when this image was used last time. LastUsedAt time.Time // PullSucceeded defines whether this image has been pulled successfully before, // this should be set to true when one of the pull image call succeeds. PullSucceeded bool // 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 ¶
func (imageState *ImageState) GetImageNamesCount() int
func (*ImageState) GetPullSucceeded ¶
func (imageState *ImageState) GetPullSucceeded() bool
GetPullSucceeded safely returns the PullSucceeded of the imageState
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) SetPullSucceeded ¶
func (imageState *ImageState) SetPullSucceeded(pullSucceeded bool)
SetPullSucceeded sets the PullSucceeded of the imageState
func (*ImageState) String ¶
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)
Click to show internal directories.
Click to hide internal directories.