validator

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error) bool

func ValidateCert

func ValidateCert(cert []byte) error

func ValidateCerts

func ValidateCerts(certs map[string][]byte) error

func ValidateKey

func ValidateKey(key []byte) error

Types

type Validator

type Validator struct {
	Client     k8sclient.Client
	HSMEnabled bool
}

func (*Validator) CheckAdminCerts

func (v *Validator) CheckAdminCerts(instance v1.Object, prefix string) error

func (*Validator) CheckCACerts

func (v *Validator) CheckCACerts(instance v1.Object, prefix string) error

func (*Validator) CheckCert

func (v *Validator) CheckCert(instance v1.Object, prefix string) error

func (*Validator) CheckCertAndKey

func (v *Validator) CheckCertAndKey(instance v1.Object, prefix string) error

func (*Validator) CheckClientAuthCrypto

func (v *Validator) CheckClientAuthCrypto(instance v1.Object, name string) error

func (*Validator) CheckEcertCrypto

func (v *Validator) CheckEcertCrypto(instance v1.Object, name string) error

func (*Validator) CheckKey

func (v *Validator) CheckKey(instance v1.Object, prefix string) error

func (*Validator) CheckTLSCrypto

func (v *Validator) CheckTLSCrypto(instance v1.Object, name string) error

func (*Validator) SetHSMEnabled

func (v *Validator) SetHSMEnabled(enabled bool)

Jump to

Keyboard shortcuts

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