store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailabilityModeDescMap = map[AvailabilityMode]string{
	Available:           "available",
	Absent:              "absent",
	BadImageName:        "bad_image_format",
	RegistryUnavailable: "registry_unavailable",
	AuthnFailure:        "authentication_failure",
	AuthzFailure:        "authorization_failure",
	UnknownError:        "unknown_error",
}

Functions

This section is empty.

Types

type AvailabilityMode

type AvailabilityMode int
const (
	Available AvailabilityMode = iota
	Absent
	BadImageName
	RegistryUnavailable
	AuthnFailure
	AuthzFailure
	UnknownError
)

func (AvailabilityMode) String

func (a AvailabilityMode) String() string

type ContainerInfo

type ContainerInfo struct {
	Namespace      string
	ControllerKind string
	ControllerName string
	Container      string
}

type ImageInfo

type ImageInfo struct {
	ContainerInfo map[ContainerInfo]struct{}
	AvailMode     AvailabilityMode
}

type ImageStore

type ImageStore struct {
	// contains filtered or unexported fields
}

func NewImageStore

func NewImageStore(check checkFunc, concurrentNormalChecks, concurrentErrorChecks int) *ImageStore

func (*ImageStore) Check added in v0.2.0

func (s *ImageStore) Check()

func (*ImageStore) ExtractMetrics

func (s *ImageStore) ExtractMetrics() (ret []prometheus.Metric)

func (*ImageStore) ReconcileImage added in v0.2.0

func (s *ImageStore) ReconcileImage(imageName string, containerInfos []ContainerInfo)

func (*ImageStore) RunGC added in v0.2.0

func (s *ImageStore) RunGC(gc gcFunc)

Jump to

Keyboard shortcuts

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