config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API configuration

type Config

type Config struct {
	API        API     `mapstructure:"api"`
	REST       REST    `mapstructure:"rest"`
	Metrics    Metrics `mapstructure:"metrics"`
	Kubeconfig string  `mapstructure:"kubeconfig"`
}

Config of the Policyer

type Metrics added in v1.0.0

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

Metrics configuration

type REST added in v1.0.0

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

REST 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) APIServer

func (r *Resolver) APIServer(foundResources map[string]bool) api.Server

APIServer resolver method

func (*Resolver) EventPublisher added in v1.0.0

func (r *Resolver) EventPublisher() kyverno.EventPublisher

EventPublisher resolver method

func (*Resolver) Mapper

func (r *Resolver) Mapper() kubernetes.Mapper

Mapper resolver method

func (*Resolver) PolicyClient

func (r *Resolver) PolicyClient() (kyverno.PolicyClient, error)

PolicyClient resolver method

func (*Resolver) PolicyStore

func (r *Resolver) PolicyStore() *kyverno.PolicyStore

PolicyStore resolver method

func (*Resolver) RegisterMetricsListener added in v1.0.0

func (r *Resolver) RegisterMetricsListener()

RegisterMetricsListener resolver method

func (*Resolver) RegisterStoreListener added in v1.0.0

func (r *Resolver) RegisterStoreListener()

RegisterStoreListener resolver method

Jump to

Keyboard shortcuts

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