Documentation ¶
Index ¶
- Variables
- func DeleteCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) error
- type Certificate
- func ApproveCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) (*Certificate, error)
- func GetCertificateByNodeName(ctx context.Context, client kubernetes.Interface, nodeName string) (*Certificate, error)
- func RequestCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) (*Certificate, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNodeCertificateNotFound = errors.New("node certificate not found")
)
Functions ¶
func DeleteCertificate ¶
func DeleteCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) error
DeleteCertificate deletes csr.
Types ¶
type Certificate ¶
type Certificate struct { V1 *certv1.CertificateSigningRequest V1Beta1 *certv1beta1.CertificateSigningRequest }
Certificate wraps v1 and v1beta1 csr.
func ApproveCertificate ¶
func ApproveCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) (*Certificate, error)
ApproveCertificate approves csr.
func GetCertificateByNodeName ¶
func GetCertificateByNodeName(ctx context.Context, client kubernetes.Interface, nodeName string) (*Certificate, error)
GetCertificateByNodeName lists all csr objects and parses request pem encoded cert to find it by node name.
func RequestCertificate ¶
func RequestCertificate(ctx context.Context, client kubernetes.Interface, cert *Certificate) (*Certificate, error)
RequestCertificate creates new csr.
func (*Certificate) Approved ¶
func (c *Certificate) Approved() bool
func (*Certificate) Validate ¶
func (c *Certificate) Validate() error
Click to show internal directories.
Click to hide internal directories.