manager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Certificates = map[string][]string{
		"ca":     {"ca.crt", "tls.crt"},
		"server": {"ca.crt", "tls.crt", "tls.key"},
		"client": {"ca.crt", "tls.crt", "tls.key"},
	}

	CopyCertificates = map[string][]string{
		"ca":     {"ca.crt", "tls.crt"},
		"server": {"ca.crt", "tls.crt"},
		"client": {"ca.crt", "tls.crt", "tls.key"},
	}
)

Functions

func CreateDummyCerts

func CreateDummyCerts(namespace string)

Types

type CertificateManager

type CertificateManager interface {
	Start(ctx context.Context) error
	Clean(ctx context.Context) error
	ServerCertificates() *TLSCertificates
}

func New

func New(namespace string) CertificateManager

type TLSCertificates

type TLSCertificates struct {
	CertFile string
	KeyFile  string
}

Jump to

Keyboard shortcuts

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