generic

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateRequestPEMBlockType = "CERTIFICATE REQUEST"
)

Variables

This section is empty.

Functions

func GetCertificateSigningRequestApprovalCondition

func GetCertificateSigningRequestApprovalCondition(status *certificatesv1.CertificateSigningRequestStatus) (approved, denied bool)

func IsCertificateSigningRequestApproved

func IsCertificateSigningRequestApproved(csr *certificatesv1.CertificateSigningRequest) bool

func ParseCertificateRequest

func ParseCertificateRequest(pemBytes []byte) (*x509.CertificateRequest, error)

Types

type CertificateSigningRequestRecognizer

type CertificateSigningRequestRecognizer interface {
	Recognize(csr *certificatesv1.CertificateSigningRequest, x509CR *x509.CertificateRequest) bool
	Permission() authv1.ResourceAttributes
	SuccessMessage() string
}

func NewCertificateSigningRequestRecognizer

func NewCertificateSigningRequestRecognizer(
	recognize func(csr *certificatesv1.CertificateSigningRequest, x509CR *x509.CertificateRequest) bool,
	permission authv1.ResourceAttributes,
	successMessage string,
) CertificateSigningRequestRecognizer

Jump to

Keyboard shortcuts

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