config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kubeconfig string    `mapstructure:"kubeconfig"`
	Profiling  Profiling `mapstructure:"profiling"`
	Webhook    Webhook   `mapstructure:"webhook"`
	Results    Results   `mapstructure:"results"`
	Rules      Rules     `mapstructure:"rules"`
}

Config of the Tracee Adapter

type Profiling

type Profiling struct {
	Enabled bool `mapstructure:"enabled"`
}

Profiling 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) Filter

func (r *Resolver) Filter() *tracee.Filter

Filter resolver method

func (*Resolver) PolicyReportClient

func (r *Resolver) PolicyReportClient() (*k8s.Client, error)

PolicyReportClient resolver method

func (*Resolver) Server

func (r *Resolver) Server() (api.Server, error)

Server resolver method

type Results

type Results struct {
	MaxPerReport    int `mapstructure:"maxPerReport"`
	MinimumSeverity int `mapstructure:"minimumSeverity"`
}

Results configuration

type Rules

type Rules struct {
	Exclude []string `mapstructure:"exclude"`
}

Results configuration

type Webhook

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

Webhook configuration

Jump to

Keyboard shortcuts

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