exposedsecret

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrivySource  = "Trivy ExposedSecrets"
	ReportPrefix = "trivy-exp-secret-polr"
	Category     = "ExposedSecret"

	ContainerLabel = "trivy-operator.container.name"
	KindLabel      = "trivy-operator.resource.kind"
	NameAnnotation = "trivy-operator.resource.name"
	NamespaceLabel = "trivy-operator.resource.namespace"
)

Variables

View Source
var ReportLabels = map[string]string{
	"app.kubernetes.io/managed-by": "trivy-operator-polr-adapter",
	"app.kubernetes.io/created-by": "trivy-operator-polr-adapter",
	"trivy-operator.source":        "ExposedSecretReport",
}

Functions

func CreateObjectReference

func CreateObjectReference(report *v1alpha1.ExposedSecretReport) *corev1.ObjectReference

func GenerateID added in v0.11.0

func GenerateID(uid, name, policy, rule, result, category string) string

func GenerateReportName added in v0.11.0

func GenerateReportName(report *v1alpha1.ExposedSecretReport) string

Types

type Client

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

func NewClient

func NewClient(mgr manager.Manager, client controller.Controller, rclient ReportClient) *Client

func (*Client) StartWatching

func (e *Client) StartWatching(ctx context.Context) error

type ReportClient added in v0.11.0

type ReportClient interface {
	GenerateReport(ctx context.Context, report *v1alpha1.ExposedSecretReport) error
	DeleteReport(ctx context.Context, report *v1alpha1.ExposedSecretReport) error
}

func NewReportClient added in v0.11.0

func NewReportClient(client pr.Wgpolicyk8sV1alpha2Interface, applyLabels []string) ReportClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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