validator

package
v1.0.5-3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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