cert

package
v1.28.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateDefinition

type CertificateDefinition struct {
	// current CA key/cert
	SignerSecret   *corev1.Secret
	SignerValidity time.Duration
	SignerRefresh  time.Duration

	// all valid CA certs
	CertBundleConfigmap *corev1.ConfigMap

	// current key/cert for target
	TargetSecret   *corev1.Secret
	TargetValidity time.Duration
	TargetRefresh  time.Duration

	// only one of the following should be set
	// contains target key/cert for server
	TargetService *string
	// contains target user name
	TargetUser *string
}

CertificateDefinition contains the data required to create/manage certtificate chains

func CreateCertificateDefinitions

func CreateCertificateDefinitions(args *FactoryArgs) []CertificateDefinition

CreateCertificateDefinitions creates certificate definitions

type FactoryArgs

type FactoryArgs struct {
	Namespace string
}

FactoryArgs contains the required parameters to generate certs

Jump to

Keyboard shortcuts

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