Documentation ¶
Index ¶
- func NewPrivateKeySecret(namespace, secretName string, privateKey *rsa.PrivateKey) (*v1.Secret, error)
- func NewTLSSecret(namespace, secretName string, keyPair *triple.KeyPair, ...) *v1.Secret
- func NewTLSSecretFromBytes(namespace, secretName string, privateKeyBytes, certBytes, caCertBytes []byte, ...) *v1.Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrivateKeySecret ¶
func NewPrivateKeySecret(namespace, secretName string, privateKey *rsa.PrivateKey) (*v1.Secret, error)
NewPrivateKeySecret returns a new private key secret
func NewTLSSecret ¶
func NewTLSSecret(namespace, secretName string, keyPair *triple.KeyPair, caCert *x509.Certificate, owner *metav1.OwnerReference) *v1.Secret
NewTLSSecret returns a new TLS secret from objects
func NewTLSSecretFromBytes ¶
func NewTLSSecretFromBytes(namespace, secretName string, privateKeyBytes, certBytes, caCertBytes []byte, owner *metav1.OwnerReference) *v1.Secret
NewTLSSecretFromBytes returns a new TLS secret from bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.