Documentation ¶
Index ¶
- Variables
- func Approve(ctx context.Context, config *rest.Config, csr *certs.CertificateSigningRequest) error
- func NewClientCertificateRequest(user string) *x509.CertificateRequest
- func NewNodeCertificateRequest(public, discovery, domain, namespace string) *x509.CertificateRequest
- func SignAndCreate(request *x509.CertificateRequest, secret *resource.TLSSecret, ...) error
- type CSR
- type RequestStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logf.Log.WithName("tls")
Functions ¶
func NewClientCertificateRequest ¶
func NewClientCertificateRequest(user string) *x509.CertificateRequest
func NewNodeCertificateRequest ¶
func NewNodeCertificateRequest(public, discovery, domain, namespace string) *x509.CertificateRequest
func SignAndCreate ¶
func SignAndCreate(request *x509.CertificateRequest, secret *resource.TLSSecret, csr *certs.CertificateSigningRequest, usages []certs.KeyUsage) error
Types ¶
type CSR ¶
type CSR struct { Status RequestStatus // contains filtered or unexported fields }
func (CSR) Unwrap ¶
func (c CSR) Unwrap() *certs.CertificateSigningRequest
func (CSR) UnwrappedCopy ¶
func (c CSR) UnwrappedCopy() *certs.CertificateSigningRequest
type RequestStatus ¶
type RequestStatus string
const ( SigningRequestPending RequestStatus = "Pending" SigningRequestNotFound RequestStatus = "NotFound" SigningRequestApproved RequestStatus = "Approved" SigningRequestDenied RequestStatus = "Denied" )
Click to show internal directories.
Click to hide internal directories.