certificate

package
v1.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KubeletCertValidation = "kubelet-cert-validation"

Variables

This section is empty.

Functions

func AddKubeletRemediation

func AddKubeletRemediation(certPath string, err error) error

AddKubeletRemediation adds kubelet-specific remediation messages based on error type

func IsDateValidationError

func IsDateValidationError(err error) bool

func IsNoCertError

func IsNoCertError(err error) bool

func Validate

func Validate(certPath string, ca []byte) error

Validate checks if there is an existing certificate and validates it against the provided CA

Types

type CertClockSkewError

type CertClockSkewError struct {
	// contains filtered or unexported fields
}

func (*CertClockSkewError) Error

func (e *CertClockSkewError) Error() string

func (*CertClockSkewError) Unwrap

func (e *CertClockSkewError) Unwrap() error

type CertExpiredError

type CertExpiredError struct {
	// contains filtered or unexported fields
}

func (*CertExpiredError) Error

func (e *CertExpiredError) Error() string

func (*CertExpiredError) Unwrap

func (e *CertExpiredError) Unwrap() error

type CertFileError

type CertFileError struct {
	// contains filtered or unexported fields
}

func (*CertFileError) Error

func (e *CertFileError) Error() string

func (*CertFileError) Unwrap

func (e *CertFileError) Unwrap() error

type CertInvalidCAError

type CertInvalidCAError struct {
	// contains filtered or unexported fields
}

func (*CertInvalidCAError) Error

func (e *CertInvalidCAError) Error() string

func (*CertInvalidCAError) Unwrap

func (e *CertInvalidCAError) Unwrap() error

type CertInvalidFormatError

type CertInvalidFormatError struct {
	// contains filtered or unexported fields
}

func (*CertInvalidFormatError) Error

func (e *CertInvalidFormatError) Error() string

func (*CertInvalidFormatError) Unwrap

func (e *CertInvalidFormatError) Unwrap() error

type CertNotFoundError

type CertNotFoundError struct {
	// contains filtered or unexported fields
}

func (*CertNotFoundError) Error

func (e *CertNotFoundError) Error() string

func (*CertNotFoundError) Unwrap

func (e *CertNotFoundError) Unwrap() error

type CertParseCAError

type CertParseCAError struct {
	// contains filtered or unexported fields
}

func (*CertParseCAError) Error

func (e *CertParseCAError) Error() string

func (*CertParseCAError) Unwrap

func (e *CertParseCAError) Unwrap() error

type CertReadError

type CertReadError struct {
	// contains filtered or unexported fields
}

func (*CertReadError) Error

func (e *CertReadError) Error() string

func (*CertReadError) Unwrap

func (e *CertReadError) Unwrap() error

Jump to

Keyboard shortcuts

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