config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CISKubeBenchReports

type CISKubeBenchReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

CISKubeBenchReports configuration

type ClusterInfraAssessmentReports added in v0.5.0

type ClusterInfraAssessmentReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

type ComplianceReports

type ComplianceReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

ComplianceReports configuration

type Config

type Config struct {
	Kubeconfig                    string                        `mapstructure:"kubeconfig"`
	Server                        Server                        `mapstructure:"server"`
	VulnerabilityReports          VulnerabilityReports          `mapstructure:"vulnerabilityReports"`
	ConfigAuditReports            ConfigAuditReports            `mapstructure:"configAuditReports"`
	CISKubeBenchReports           CISKubeBenchReports           `mapstructure:"cisKubeBenchReports"`
	ComplianceReports             ComplianceReports             `mapstructure:"complianceReports"`
	RbacAssessmentReports         RbacAssessmentReports         `mapstructure:"rbacAssessmentReports"`
	ExposedSecretReports          ExposedSecretReports          `mapstructure:"exposedSecretReports"`
	InfraAssessmentReports        InfraAssessmentReports        `mapstructure:"infraAssessmentReports"`
	ClusterInfraAssessmentReports ClusterInfraAssessmentReports `mapstructure:"clusterInfraAssessmentReports"`
}

Config of the Tracee Adapter

type ConfigAuditReports

type ConfigAuditReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

ConfigAuditReports configuration

type ExposedSecretReports added in v0.1.0

type ExposedSecretReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

ExposedSecretReports configuration

type InfraAssessmentReports added in v0.3.1

type InfraAssessmentReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

type RbacAssessmentReports added in v0.1.0

type RbacAssessmentReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

RbacAssessmentReports configuration

type Resolver

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

Resolver manages dependencies

func NewResolver

func NewResolver(config *Config, k8sConfig *rest.Config) Resolver

NewResolver constructor function

func (*Resolver) CISKubeBenchReportClient

func (r *Resolver) CISKubeBenchReportClient() (*kubebench.Client, error)

CISKubeBenchReportClient resolver method

func (*Resolver) CRDsClient added in v0.6.0

func (r *Resolver) CRDsClient() (dynamic.ResourceInterface, error)

func (*Resolver) ClusterInfraAssessmentReportClient added in v0.5.0

func (r *Resolver) ClusterInfraAssessmentReportClient() (*clusterinfra.Client, error)

ClusterInfraAssessmentReportClient resolver method

func (*Resolver) ClusterRbacAssessmentReportClient added in v0.1.0

func (r *Resolver) ClusterRbacAssessmentReportClient() (*clusterrbac.Client, error)

ClusterRbacAssessmentReportClient resolver method

func (*Resolver) ComplianceReportClient added in v0.1.0

func (r *Resolver) ComplianceReportClient() (*compliance.Client, error)

ComplianceReportClient resolver method

func (*Resolver) ConfigAuditReportClient

func (r *Resolver) ConfigAuditReportClient() (*auditr.Client, error)

ConfigAuditReportClient resolver method

func (*Resolver) ExposedSecretReportClient added in v0.1.0

func (r *Resolver) ExposedSecretReportClient() (*exposedsecret.Client, error)

RbacAssessmentReportClient resolver method

func (*Resolver) InfraAssessmentReportClient added in v0.3.1

func (r *Resolver) InfraAssessmentReportClient() (*infra.Client, error)

InfraAssessmentReportClient resolver method

func (*Resolver) Manager added in v0.1.0

func (r *Resolver) Manager() (manager.Manager, error)

func (*Resolver) RbacAssessmentReportClient added in v0.1.0

func (r *Resolver) RbacAssessmentReportClient() (*rbac.Client, error)

RbacAssessmentReportClient resolver method

func (*Resolver) Server added in v0.6.0

func (r *Resolver) Server(client dynamic.ResourceInterface) *server.Server

func (*Resolver) VulnerabilityReportClient

func (r *Resolver) VulnerabilityReportClient() (*vulnr.Client, error)

VulnerabilityReportClient resolver method

type Server added in v0.6.0

type Server struct {
	Port int `mapstructure:"port"`
}

Server configuration

type VulnerabilityReports

type VulnerabilityReports struct {
	Enabled     bool     `mapstructure:"enabled"`
	Timeout     int      `mapstructure:"timeout"`
	ApplyLabels []string `mapstructure:"applyLabels"`
}

VulnerabilityReports configuration

Jump to

Keyboard shortcuts

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