config

package
v0.0.0-...-320551d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnforceConfig

func LoadEnforceConfig(namespace, cmname string) *cfg.EnforcerConfig

Types

type AdmissionControlConfig

type AdmissionControlConfig struct {
	EnforcerConfig *cfg.EnforcerConfig
	// contains filtered or unexported fields
}

func NewAdmissionControlConfig

func NewAdmissionControlConfig() *AdmissionControlConfig

func (*AdmissionControlConfig) HelmIntegrityEnabled

func (ac *AdmissionControlConfig) HelmIntegrityEnabled() bool

func (*AdmissionControlConfig) InitEnforcerConfig

func (ac *AdmissionControlConfig) InitEnforcerConfig() bool

type CRPPLoader

type CRPPLoader struct {
	Client *crppclient.ResearchV1alpha1Client
	Data   []*crppapi.ClusterResourceProtectionProfile
	// contains filtered or unexported fields
}

func NewCRPPLoader

func NewCRPPLoader() *CRPPLoader

func (*CRPPLoader) GetData

func (*CRPPLoader) GetProfileInterface

func (self *CRPPLoader) GetProfileInterface() []protect.ProtectionProfile

func (*CRPPLoader) Load

func (self *CRPPLoader) Load()

func (*CRPPLoader) Update

func (self *CRPPLoader) Update(profiles []protect.ProtectionProfile) error

type ProtectionProfileLoader

type ProtectionProfileLoader interface {
	GetProfileInterface() []protect.ProtectionProfile
	Update(profiles []protect.ProtectionProfile) error
}

type RPPLoader

type RPPLoader struct {
	Client *rppclient.ResearchV1alpha1Client
	Data   []*rppapi.ResourceProtectionProfile
	// contains filtered or unexported fields
}

func NewRPPLoader

func NewRPPLoader(enforcerNamespace, requestNamespace string) *RPPLoader

func (*RPPLoader) GetData

func (self *RPPLoader) GetData() []*rppapi.ResourceProtectionProfile

func (*RPPLoader) GetProfileInterface

func (self *RPPLoader) GetProfileInterface() []protect.ProtectionProfile

func (*RPPLoader) Load

func (self *RPPLoader) Load()

func (*RPPLoader) Update

func (self *RPPLoader) Update(profiles []protect.ProtectionProfile) error

type ResSigLoader

type ResSigLoader struct {
	Client *rsigclient.ResearchV1alpha1Client
	Data   []*rsigapi.ResourceSignature
	// contains filtered or unexported fields
}

func NewResSigLoader

func NewResSigLoader(signatureNamespace, requestNamespace string) *ResSigLoader

func (*ResSigLoader) GetData

func (self *ResSigLoader) GetData() []*rsigapi.ResourceSignature

func (*ResSigLoader) Load

func (self *ResSigLoader) Load()

type SignPolicyLoader

type SignPolicyLoader struct {
	Client *spolclient.ResearchV1alpha1Client
	Data   *spolapi.SignPolicy
	// contains filtered or unexported fields
}

func NewSignPolicyLoader

func NewSignPolicyLoader(enforcerNamespace string) *SignPolicyLoader

func (*SignPolicyLoader) GetData

func (self *SignPolicyLoader) GetData() *spolapi.SignPolicy

func (*SignPolicyLoader) Load

func (self *SignPolicyLoader) Load()

Jump to

Keyboard shortcuts

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