Help us shape the future of Go! Take the 2026 Go Developer Survey

k8sapi

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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