k8sapi

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func (*KeypairSecret) Encode

func (k *KeypairSecret) Encode() (*v1.Secret, error)

Encode maps a KeypairSecret into a k8s Secret

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 (*KubernetesKeystore) MirrorTo

func (c *KubernetesKeystore) MirrorTo(dest vfs.Path) error

func (*KubernetesKeystore) StoreKeypair

func (c *KubernetesKeystore) StoreKeypair(id string, cert *pki.Certificate, privateKey *pki.PrivateKey) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL