models

package
v0.0.0-...-d14f77f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const ScoreOutOfBoundsMessage = "score out of bounds"

ScoreOutOfBoundsMessage is the message for the error when the score returned by Insights is out of bounds.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Reports struct {
		Polaris bool
		Pluto   bool
		OPA     bool
	}
	OPA struct {
		CustomChecks         []opa.OPACustomCheck // contains both checks and libraries (IsLibrary)
		CustomCheckInstances []opa.CheckSetting
	}
	Polaris *polarisconfiguration.Configuration
}

Configuration saves any config from Insights.

type InsightsConfig

type InsightsConfig struct {
	Hostname        string
	Organization    string
	Cluster         string
	Token           string
	IgnoreUsernames []string
}

type ReportInfo

type ReportInfo struct {
	Report   string
	Version  string
	Contents []byte
}

ReportInfo is the information about a run of one of the reports.

type Resource

type Resource struct {
	Kind      string
	Name      string
	Filename  string
	HelmName  string
	Namespace string
}

Resource represents a Kubernetes resource with information about what file it came from.

Jump to

Keyboard shortcuts

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