Documentation ¶
Index ¶
- func AvailabilityModeDescMap() map[AvailabilityMode]string
- type AvailabilityMode
- type ContainerInfo
- type ImageInfo
- type ImageStore
- func (imgStore *ImageStore) AddOrUpdateImage(imageName string, lastCheck time.Time, availMode ...AvailabilityMode)
- func (imgStore *ImageStore) ExtractMetrics() (ret []prometheus.Metric)
- func (imgStore *ImageStore) Length() int
- func (imgStore *ImageStore) PopOldestImages(count int) (ret []string)
- func (imgStore *ImageStore) RemoveContainerAssociation(image, namespace, kind, name, container string)
- func (imgStore *ImageStore) RemoveImage(imageName string)
- func (imgStore *ImageStore) UpdateContainerAssociations(image string, containerInfos []ContainerInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailabilityModeDescMap ¶
func AvailabilityModeDescMap() map[AvailabilityMode]string
Types ¶
type AvailabilityMode ¶
type AvailabilityMode int
const ( Available AvailabilityMode = iota Absent BadImageName AuthnFailure AuthzFailure UnknownError )
func (AvailabilityMode) String ¶
func (a AvailabilityMode) String() string
type ContainerInfo ¶
type ImageInfo ¶
type ImageInfo struct { Info map[ContainerInfo]struct{} LastCheck time.Time AvailMode AvailabilityMode }
type ImageStore ¶
type ImageStore struct {
// contains filtered or unexported fields
}
func NewImageStore ¶
func NewImageStore() *ImageStore
func (*ImageStore) AddOrUpdateImage ¶
func (imgStore *ImageStore) AddOrUpdateImage(imageName string, lastCheck time.Time, availMode ...AvailabilityMode)
func (*ImageStore) ExtractMetrics ¶
func (imgStore *ImageStore) ExtractMetrics() (ret []prometheus.Metric)
func (*ImageStore) Length ¶
func (imgStore *ImageStore) Length() int
func (*ImageStore) PopOldestImages ¶
func (imgStore *ImageStore) PopOldestImages(count int) (ret []string)
func (*ImageStore) RemoveContainerAssociation ¶
func (imgStore *ImageStore) RemoveContainerAssociation(image, namespace, kind, name, container string)
func (*ImageStore) RemoveImage ¶
func (imgStore *ImageStore) RemoveImage(imageName string)
func (*ImageStore) UpdateContainerAssociations ¶
func (imgStore *ImageStore) UpdateContainerAssociations(image string, containerInfos []ContainerInfo)
Click to show internal directories.
Click to hide internal directories.