internal

package
v0.0.0-...-ce22054 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WebDataVar makes the WebData available
	WebDataVar = WebData{}
)

Functions

func Execute

func Execute(config config.Config)

Execute runs all the checks for LCM

func StartMetricsServer

func StartMetricsServer(config config.Config)

StartMetricsServer starts the server

func StartServer

func StartServer()

StartServer starts the server

Types

type ChartInfo

type ChartInfo struct {
	Chart         kubernetes.Chart
	LatestVersion string
}

ChartInfo contains helm chart information with the latest version

func (ChartInfo) GetStatus

func (c ChartInfo) GetStatus() string

GetStatus shows status for the chart

type ContainerInfo

type ContainerInfo struct {
	Container                  kubernetes.Image
	LatestVersion              string
	Fetched                    bool
	Vulnerabilities            []vulnerabilities.Vulnerability
	VulnerabilitiesNotAccepted int
}

ContainerInfo contains pod information about the container, its version info, and security

func (ContainerInfo) GetCveStatus

func (c ContainerInfo) GetCveStatus() string

GetCveStatus shows the status based on the cve's

func (ContainerInfo) GetStatus

func (c ContainerInfo) GetStatus() string

GetStatus shows the status based on version and cve status

type GitHubInfo

type GitHubInfo struct {
	Repo          string
	Version       string
	LatestVersion string
}

GitHubInfo contains information with the latest version from GitHub repo

func (GitHubInfo) GetStatus

func (t GitHubInfo) GetStatus() string

GetStatus shows the status for the tool

type WebData

type WebData struct {
	Status          string
	LastTimeFetched string
	ContainerInfo   []ContainerInfo
	ChartInfo       []ChartInfo
	GitHubInfo      []GitHubInfo
}

WebData is all the information web page needs to show the data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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