containerimage

package
v0.0.0-...-45a9bcf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package containerimage implements the container image check.

Index

Constants

View Source
const (
	// CheckName is the name of the check
	CheckName = "container_image"
)

Variables

This section is empty.

Functions

func Factory

func Factory(store workloadmeta.Component, tagger tagger.Component) optional.Option[func() check.Check]

Factory returns a new check factory

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check reports container images

func (*Check) Configure

func (c *Check) Configure(senderManager sender.SenderManager, _ uint64, config, initConfig integration.Data, source string) error

Configure parses the check configuration and initializes the container_image check

func (*Check) Interval

func (c *Check) Interval() time.Duration

Interval returns 0. It makes container_image a long-running check

func (*Check) Run

func (c *Check) Run() error

Run starts the container_image check

func (*Check) Stop

func (c *Check) Stop()

Stop stops the container_image check

type Config

type Config struct {
	ChunkSize                  int `yaml:"chunk_size"`
	NewImagesMaxLatencySeconds int `yaml:"new_images_max_latency_seconds"`
	PeriodicRefreshSeconds     int `yaml:"periodic_refresh_seconds"`
}

Config holds the container_image check configuration

func (*Config) Parse

func (c *Config) Parse(data []byte) error

Parse parses the configuration

Jump to

Keyboard shortcuts

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