config

package
v0.0.0-...-9b5a78d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IVResourceCondition

type IVResourceCondition struct {
	OperatorResources      []*common.ResourceRef `json:"operatorResources,omitempty"`
	ServerResources        []*common.ResourceRef `json:"serverResources,omitempty"`
	OperatorServiceAccount string                `json:"operatorServiceAccount,omitempty"`
}

func (*IVResourceCondition) IsOperatorResource

func (self *IVResourceCondition) IsOperatorResource(ref *common.ResourceRef) bool

func (*IVResourceCondition) IsServerResource

func (self *IVResourceCondition) IsServerResource(ref *common.ResourceRef) bool

type IntegrityVerifierMode

type IntegrityVerifierMode string
const (
	UnknownMode IntegrityVerifierMode = ""
	EnforceMode IntegrityVerifierMode = "enforce"
	DetectMode  IntegrityVerifierMode = "detect"
)

type LogScopeConfig

type LogScopeConfig struct {
	Enabled bool                     `json:"enabled,omitempty"`
	InScope []profile.RequestPattern `json:"inScope,omitempty"`
	Ignore  []profile.RequestPattern `json:"ignore,omitempty"`
}

func (*LogScopeConfig) IsInScope

func (sc *LogScopeConfig) IsInScope(reqc *common.ReqContext) bool

type LoggingScopeConfig

type LoggingScopeConfig struct {
	LogLevel             string          `json:"logLevel,omitempty"`
	LogAllResponse       bool            `json:"logAllResponse,omitempty"`
	IncludeRequest       bool            `json:"includeRequest,omitempty"`
	IncludeRelease       bool            `json:"includeRelease,omitempty"`
	ConsoleLog           *LogScopeConfig `json:"consoleLog,omitempty"`
	ContextLog           *LogScopeConfig `json:"contextLog,omitempty"`
	ConsoleLogFormat     string          `json:"consoleLogFormat,omitempty"`
	ConsoleLogFile       string          `json:"consoleLogFile,omitempty"`
	ContextLogFile       string          `json:"contextLogFile,omitempty"`
	ContextLogRotateSize int64           `json:"contextLogRotateSize,omitempty"`
}

type PatchConfig

type PatchConfig struct {
	Enabled bool `json:"enabled,omitempty"`
}

type PluginConfig

type PluginConfig struct {
	Name    string `json:"name,omitempty"`
	Enabled bool   `json:"enabled,omitempty"`
}

type VerifierConfig

type VerifierConfig struct {
	Patch *PatchConfig        `json:"patch,omitempty"`
	Log   *LoggingScopeConfig `json:"log,omitempty"`

	InScopeNamespaceSelector *common.NamespaceSelector          `json:"inScopeNamespaceSelector,omitempty"`
	Allow                    []profile.RequestPattern           `json:"allow,omitempty"`
	Ignore                   []profile.RequestPattern           `json:"ignore,omitempty"`
	Mode                     IntegrityVerifierMode              `json:"mode,omitempty"`
	Plugin                   []PluginConfig                     `json:"plugin,omitempty"`
	CommonProfile            *rspapi.ResourceSigningProfileSpec `json:"commonProfile,omitempty"`

	Namespace          string   `json:"namespace,omitempty"`
	SignatureNamespace string   `json:"signatureNamespace,omitempty"`
	ProfileNamespace   string   `json:"profileNamespace,omitempty"`
	VerifyType         string   `json:"verifyType"`
	KeyPathList        []string `json:"keyPathList,omitempty"`
	ChartDir           string   `json:"chartPath,omitempty"`
	ChartRepo          string   `json:"chartRepo,omitempty"`

	IVResource          string               `json:"ivResource,omitempty"`
	IVResourceCondition *IVResourceCondition `json:"ivResourceCondition,omitempty"`
	IVAdminUserGroup    string               `json:"ivAdminUserGroup,omitempty"`
	IVAdminUserName     string               `json:"ivAdminUserName,omitempty"`
	IVServerUserName    string               `json:"ivServerUserName,omitempty"`
	Options             []string             `json:"options,omitempty"`
}

func (*VerifierConfig) ConsoleLogEnabled

func (ec *VerifierConfig) ConsoleLogEnabled(reqc *common.ReqContext) bool

func (*VerifierConfig) ContextLogEnabled

func (ec *VerifierConfig) ContextLogEnabled(reqc *common.ReqContext) bool

func (*VerifierConfig) ContextLoggerConfig

func (ec *VerifierConfig) ContextLoggerConfig() logger.ContextLoggerConfig

func (*VerifierConfig) DeepCopy

func (ec *VerifierConfig) DeepCopy() *VerifierConfig

func (*VerifierConfig) DeepCopyInto

func (ec *VerifierConfig) DeepCopyInto(ec2 *VerifierConfig)

func (*VerifierConfig) GetEnabledPlugins

func (ec *VerifierConfig) GetEnabledPlugins() map[string]bool

func (*VerifierConfig) LogConfig

func (ec *VerifierConfig) LogConfig() *LoggingScopeConfig

func (*VerifierConfig) LoggerConfig

func (ec *VerifierConfig) LoggerConfig() logger.LoggerConfig

func (*VerifierConfig) PatchEnabled

func (ec *VerifierConfig) PatchEnabled() bool

Jump to

Keyboard shortcuts

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