Documentation
¶
Index ¶
- func ApproveCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, ...) error
- func Certificate(ctx context.Context, client kubernetes.Interface, name string) ([]byte, error)
- func CertificateExistsFunc(client kubernetes.Interface, name string) wait.ConditionWithContextFunc
- func CreateCertificateSigningRequests(ctx context.Context, client kubernetes.Interface, ...) error
- func DeleteCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, name string) error
- func DeleteCertificateSigningRequestUID(ctx context.Context, client kubernetes.Interface, name string, uid types.UID) error
- func GetCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, name string) (*certv1.CertificateSigningRequest, error)
- func NewCertificateRequest(opts CertificateRequestOptions) ([]byte, error)
- func NewCertificateSigningRequest(opts CertificateSigningRequestOptions) *certv1.CertificateSigningRequest
- func NewPrivateKey() (*rsa.PrivateKey, error)
- func WaitForCertificate(ctx context.Context, client kubernetes.Interface, name string) error
- type CertificateRequestOptions
- type CertificateSigningRequestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveCertificateSigningRequest ¶
func ApproveCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, csr *certv1.CertificateSigningRequest, approver string) error
func Certificate ¶
func CertificateExistsFunc ¶
func CertificateExistsFunc(client kubernetes.Interface, name string) wait.ConditionWithContextFunc
func CreateCertificateSigningRequests ¶
func CreateCertificateSigningRequests(ctx context.Context, client kubernetes.Interface, csr *certv1.CertificateSigningRequest) error
func DeleteCertificateSigningRequest ¶
func DeleteCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, name string) error
DeleteCertificateSigningRequest deletes the CSR name and waits until the apiserver no longer serves it. ctx bounds both, with certificateWaitTimeout as the longest wait (plumbing#129).
func DeleteCertificateSigningRequestUID ¶ added in v1.51.0
func DeleteCertificateSigningRequestUID(ctx context.Context, client kubernetes.Interface, name string, uid types.UID) error
DeleteCertificateSigningRequestUID deletes the CSR name only if it is still the object uid: one DELETE with a UID precondition, so a CSR re-created under the same name since is never touched (plumbing#134 review). ctx bounds the request. A precondition that no longer holds is answered Conflict.
func GetCertificateSigningRequest ¶
func GetCertificateSigningRequest(ctx context.Context, client kubernetes.Interface, name string) (*certv1.CertificateSigningRequest, error)
func NewCertificateRequest ¶
func NewCertificateRequest(opts CertificateRequestOptions) ([]byte, error)
func NewCertificateSigningRequest ¶
func NewCertificateSigningRequest(opts CertificateSigningRequestOptions) *certv1.CertificateSigningRequest
func NewPrivateKey ¶
func NewPrivateKey() (*rsa.PrivateKey, error)
func WaitForCertificate ¶
WaitForCertificate waits until the CSR name carries its certificate. ctx bounds the wait, with certificateWaitTimeout as the longest.
Types ¶
Click to show internal directories.
Click to hide internal directories.