resource

package
v0.0.0-...-cdc24ad Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name      string
	Namespace string

	Resources []Resource
}

func App

func App(ctx context.Context, client kubernetes.Client, namespace, name string) (*Application, error)

func Apps

func Apps(ctx context.Context, client kubernetes.Client, namespace string) ([]Application, error)

type BackgroundScanReport

type BackgroundScanReport = v1alpha2.BackgroundScanReport

type BackgroundScanReportList

type BackgroundScanReportList = v1alpha2.BackgroundScanReportList

type ClusterBackgroundScanReport

type ClusterBackgroundScanReport = v1alpha2.ClusterBackgroundScanReport

type ClusterBackgroundScanReportList

type ClusterBackgroundScanReportList = v1alpha2.ClusterBackgroundScanReportList

type Resource

type Resource struct {
	Category string

	Kind string

	Name      string
	Namespace string

	Labels      map[string]string
	Annotations map[string]string

	Status ResourceStatus

	Violations      []ResourceViolation
	Vulnerabilities []ResourceVulnerability
}

type ResourceStatus

type ResourceStatus string
const (
	StatusPending   ResourceStatus = "Pending"
	StatusRunning   ResourceStatus = "Running"
	StatusSucceeded ResourceStatus = "Succeeded"
	StatusFailed    ResourceStatus = "Failed"
	StatusUnknown   ResourceStatus = ""
)

type ResourceViolation

type ResourceViolation struct {
	Category string

	Policy string
	Rule   string

	Result   string
	Severity string

	Message string
}

type ResourceVulnerability

type ResourceVulnerability struct {
	Severity string

	Resource string
	Version  string

	Title       string
	Description string
}

type VulnerabilityReport

type VulnerabilityReport = v1alpha1.VulnerabilityReport

type VulnerabilityReportList

type VulnerabilityReportList = v1alpha1.VulnerabilityReportList

Jump to

Keyboard shortcuts

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