application

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImagePoller

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

func NewImagePoller

func NewImagePoller(
	monitor *monitor.Monitor,
	imgrepo *repository.ImageRepository,
	config *ImagePollerConfig,
) *ImagePoller

func (*ImagePoller) Poll

func (p *ImagePoller) Poll(ctx context.Context, reqs chan bool)

type ImagePollerConfig

type ImagePollerConfig struct {
	Interval time.Duration `yaml:"interval"`

	ScanRepo ScanRepoConfig `yaml:"scan_repo"`
}

type ScanRepoConfig

type ScanRepoConfig struct {
	Lang bool `yaml:"lang"`
	Deps bool `yaml:"deps"`
}

func (*ScanRepoConfig) Enabled

func (s *ScanRepoConfig) Enabled() bool

type ServicePoller

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

func NewServicePoller

func NewServicePoller(
	monitor *monitor.Monitor,
	serviceRepo *repository.ServiceRepository,
	config *ServicePollerConfig,
) *ServicePoller

func (*ServicePoller) Poll

func (p *ServicePoller) Poll(ctx context.Context)

type ServicePollerConfig

type ServicePollerConfig struct {
	Interval   time.Duration `yaml:"interval"`
	Concurrent int           `yaml:"concurrent"`
	Metrics    struct {
		Depth      int  `yaml:"depth"`
		OnlyUnique bool `yaml:"only_unique"`
	} `yaml:"metrics"`
}

type VolumePoller

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

func NewVolumePoller

func NewVolumePoller(
	monitor *monitor.Monitor,
	vlmrepo *repository.VolumeRepository,
	config *VolumePollerConfig,
) *VolumePoller

func (*VolumePoller) Poll

func (p *VolumePoller) Poll(ctx context.Context, reqs chan bool)

type VolumePollerConfig

type VolumePollerConfig struct {
	Interval time.Duration `yaml:"interval"`
}

Jump to

Keyboard shortcuts

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