k8s

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeyAndCertificateFromSecret

func GetKeyAndCertificateFromSecret(secret *corev1.Secret) ([]byte, []byte)

GetKeyAndCertificateFromSecret converts Kubernetes Secret to key pem and cert pem

Types

type SecretsClient

type SecretsClient struct {
	// contains filtered or unexported fields
}

API client for managing Kubernetes Secrets

func NewSecretClient

func NewSecretClient(name, namespace string) (*SecretsClient, error)

NewSecretClient initializes Kubernetes SecretClient

func (*SecretsClient) ApplyIdentitySecret

func (c *SecretsClient) ApplyIdentitySecret(key, cert []byte) (*corev1.Secret, error)

ApplyIdentitySecret applies/patches Kubernetes Secret

func (*SecretsClient) CreateIdentitySecret

func (c *SecretsClient) CreateIdentitySecret(key, cert []byte) (*corev1.Secret, error)

CreateIdentitySecret creates Kubernetes Secret

func (*SecretsClient) GetIdentitySecret

func (c *SecretsClient) GetIdentitySecret() (secret *corev1.Secret, isNotFound bool, err error)

GetIdentitySecret gets Kubernetes Secret

func (*SecretsClient) UpdateIdentitySecret

func (c *SecretsClient) UpdateIdentitySecret(key, cert []byte) (*corev1.Secret, error)

UpdateIdentitySecret updates Kubernetes Secret

Jump to

Keyboard shortcuts

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