Documentation ¶
Index ¶
- func NewKubernetesKeystore(client kubernetes.Interface, namespace string) fi.Keystore
- type KeypairSecret
- type KubernetesKeystore
- func (c *KubernetesKeystore) CreateKeypair(signer string, id string, template *x509.Certificate, ...) (*pki.Certificate, error)
- func (c *KubernetesKeystore) FindKeypair(id string) (*pki.Certificate, *pki.PrivateKey, fi.KeysetFormat, error)
- func (c *KubernetesKeystore) MirrorTo(dest vfs.Path) error
- func (c *KubernetesKeystore) StoreKeypair(id string, cert *pki.Certificate, privateKey *pki.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubernetesKeystore ¶
func NewKubernetesKeystore(client kubernetes.Interface, namespace string) fi.Keystore
Types ¶
type KeypairSecret ¶
type KeypairSecret struct { Namespace string Name string Certificate *pki.Certificate PrivateKey *pki.PrivateKey }
KeypairSecret is a wrapper around a k8s Secret object that holds a TLS keypair
func ParseKeypairSecret ¶
func ParseKeypairSecret(secret *v1.Secret) (*KeypairSecret, error)
ParseKeypairSecret parses the secret object, decoding the certificate & private-key, if present
type KubernetesKeystore ¶
type KubernetesKeystore struct {
// contains filtered or unexported fields
}
func (*KubernetesKeystore) CreateKeypair ¶
func (c *KubernetesKeystore) CreateKeypair(signer string, id string, template *x509.Certificate, privateKey *pki.PrivateKey) (*pki.Certificate, error)
func (*KubernetesKeystore) FindKeypair ¶
func (c *KubernetesKeystore) FindKeypair(id string) (*pki.Certificate, *pki.PrivateKey, fi.KeysetFormat, error)
func (*KubernetesKeystore) StoreKeypair ¶
func (c *KubernetesKeystore) StoreKeypair(id string, cert *pki.Certificate, privateKey *pki.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.