translation

package
v1.1.0-beta20 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

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