Documentation ¶
Index ¶
- func AdmissionRequestObjectKeyString(req admission.Request) string
- func ControlByKusionStack(obj client.Object)
- func ControlledByKusionStack(obj client.Object) bool
- func DumpJSON(o interface{}) string
- func EncodeCertPEM(cert *x509.Certificate) []byte
- func Join(errs ...error) error
- func NewPrivateKey() (*rsa.PrivateKey, error)
- func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error)
- func ObjectKeyString(obj client.Object) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlByKusionStack ¶
func ControlledByKusionStack ¶
func EncodeCertPEM ¶
func EncodeCertPEM(cert *x509.Certificate) []byte
EncodeCertPEM returns PEM-encoded certificate data
func Join ¶
Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if errs contains no non-nil values. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string.
func NewPrivateKey ¶
func NewPrivateKey() (*rsa.PrivateKey, error)
NewPrivateKey creates an RSA private key
func NewSignedCert ¶
func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer) (*x509.Certificate, error)
NewSignedCert creates a signed certificate using the given CA certificate and key
func ObjectKeyString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.