translation

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSigningSecret

func GetSigningSecret(issuedCertificate *certificatesv1.IssuedCertificate) *skv2corev1.ObjectRef

Public for use in enterprise

Types

type Output

type Output struct {
	// Newly signed certirficate to be used by the mesh
	SignedCertificate []byte
	// Root CA used to sign this certificate
	SigningRootCa []byte
	// Cert chain for the signing CA
	CertChain []byte
}

Information required by cert issuer reconciler to fulfill CertificateRequest

type Translator

type Translator interface {
	// Translate the input resources into the SignedCert and SigningRootCa
	// If Output and Err are nil, this translator is not responsible for this resource
	Translate(
		ctx context.Context,
		certificateRequest *certificatesv1.CertificateRequest,
		issuedCertificate *certificatesv1.IssuedCertificate,
	) (*Output, error)
}

The cert issuer translator represents an entity which translates the input resources, into the output resources as defined by the `Output` resource below. See Output struct above

func NewTranslator

func NewTranslator(mgmtClusterSecretClient corev1clients.SecretClient) Translator

Directories

Path Synopsis
Package mock_translation is a generated GoMock package.
Package mock_translation is a generated GoMock package.

Jump to

Keyboard shortcuts

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