Documentation ¶
Index ¶
- type API
- type Config
- type Discord
- type Elasticsearch
- type Loki
- type Resolver
- func (r *Resolver) APIServer() api.Server
- func (r *Resolver) ConfigMapClient() (v1.ConfigMapInterface, error)
- func (r *Resolver) DiscordClient() target.Client
- func (r *Resolver) ElasticsearchClient() target.Client
- func (r *Resolver) LokiClient() target.Client
- func (r *Resolver) Mapper(ctx context.Context) (kubernetes.Mapper, error)
- func (r *Resolver) PolicyReportClient(ctx context.Context) (report.PolicyResultClient, error)
- func (r *Resolver) PolicyReportStore() *report.PolicyReportStore
- func (r *Resolver) ResultCache() *cache.Cache
- func (r *Resolver) SkipExistingOnStartup() bool
- func (r *Resolver) SlackClient() target.Client
- func (r *Resolver) TargetClients() []target.Client
- func (r *Resolver) TeamsClient() target.Client
- func (r *Resolver) UIClient() target.Client
- func (r *Resolver) YandexClient() target.Client
- type Slack
- type Teams
- type UI
- type Yandex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Loki Loki `mapstructure:"loki"` Elasticsearch Elasticsearch `mapstructure:"elasticsearch"` Slack Slack `mapstructure:"slack"` Discord Discord `mapstructure:"discord"` Teams Teams `mapstructure:"teams"` Yandex Yandex `mapstructure:"yandex"` UI UI `mapstructure:"ui"` API API `mapstructure:"api"` Kubeconfig string `mapstructure:"kubeconfig"` Namespace string `mapstructure:"namespace"` }
Config of the PolicyReporter
type Discord ¶
type Discord struct { Webhook string `mapstructure:"webhook"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Discord configuration
type Elasticsearch ¶
type Elasticsearch struct { Host string `mapstructure:"host"` Index string `mapstructure:"index"` Rotation string `mapstructure:"rotation"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Elasticsearch configuration
type Loki ¶
type Loki struct { Host string `mapstructure:"host"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Loki configuration
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver manages dependencies
func NewResolver ¶
NewResolver constructor function
func (*Resolver) ConfigMapClient ¶
func (r *Resolver) ConfigMapClient() (v1.ConfigMapInterface, error)
ConfigMapClient resolver method
func (*Resolver) DiscordClient ¶
DiscordClient resolver method
func (*Resolver) ElasticsearchClient ¶
ElasticsearchClient resolver method
func (*Resolver) LokiClient ¶
LokiClient resolver method
func (*Resolver) PolicyReportClient ¶
PolicyReportClient resolver method
func (*Resolver) PolicyReportStore ¶
func (r *Resolver) PolicyReportStore() *report.PolicyReportStore
PolicyReportStore resolver method
func (*Resolver) ResultCache ¶
func (r *Resolver) ResultCache() *cache.Cache
ResultCache resolver method
func (*Resolver) SkipExistingOnStartup ¶
SkipExistingOnStartup config method
func (*Resolver) SlackClient ¶
SlackClient resolver method
func (*Resolver) TargetClients ¶
TargetClients resolver method
func (*Resolver) TeamsClient ¶
TeamsClient resolver method
func (*Resolver) YandexClient ¶ added in v1.9.0
type Slack ¶
type Slack struct { Webhook string `mapstructure:"webhook"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Slack configuration
type Teams ¶
type Teams struct { Webhook string `mapstructure:"webhook"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Teams configuration
type UI ¶
type UI struct { Host string `mapstructure:"host"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
UI configuration
type Yandex ¶ added in v1.9.0
type Yandex struct { AccessKeyID string `mapstructure:"accessKeyID"` SecretAccessKey string `mapstructure:"secretAccessKey"` Region string `mapstructure:"region"` Endpoint string `mapstructure:"endpoint"` Prefix string `mapstructure:"prefix"` Bucket string `mapstructure:"bucket"` SkipExisting bool `mapstructure:"skipExistingOnStartup"` MinimumPriority string `mapstructure:"minimumPriority"` }
Click to show internal directories.
Click to hide internal directories.