tls

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package tls implements helpers for TLS certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertSecretBuilder

type CertSecretBuilder struct {
	Name       string
	Namespace  string
	CommonName string
}

CertSecretBuilder tracks the options set for a cert secret.

func CreateCertSecret

func CreateCertSecret(name string) CertSecretBuilder

CreateCertSecret creates a secret containing a self-signed certificate and key. Additional parameters can be added to this call. The creation is started by calling 'Do'.

func (CertSecretBuilder) Do

func (builder CertSecretBuilder) Do(client client.Client) (kubernetes.Secret, error)

Do creates the certificate secret.

func (CertSecretBuilder) WithCommonName

func (builder CertSecretBuilder) WithCommonName(commonName string) CertSecretBuilder

WithCommonName sets the common name of the certificate.

func (CertSecretBuilder) WithNamespace

func (builder CertSecretBuilder) WithNamespace(namespace string) CertSecretBuilder

WithNamespace sets the namespace in which the secret will be created.

Jump to

Keyboard shortcuts

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