signer

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker interface {
	Check() error
}

HealthChecker defines the interface for health check implementations.

func CertSignerHealthCheckerFromIssuerAndSecretData

func CertSignerHealthCheckerFromIssuerAndSecretData(*certv1alpha1.IssuerSpec, map[string][]byte) (HealthChecker, error)

CertSignerHealthCheckerFromIssuerAndSecretData returns a HealthChecker for a certSigner.

type HealthCheckerBuilder

type HealthCheckerBuilder func(*certv1alpha1.IssuerSpec, map[string][]byte) (HealthChecker, error)

HealthCheckerBuilder creates a HealthChecker from issuer spec and secret data.

type Signer

type Signer interface {
	Sign(ctx context.Context, logger logr.Logger, csrBytes []byte) ([]byte, []byte, error)
}

Signer defines the interface for signing certificates.

func CertSignerFromIssuerAndSecretData

func CertSignerFromIssuerAndSecretData(issuerSpec *certv1alpha1.IssuerSpec, secretData map[string][]byte, kubeClient kube.Client) (Signer, error)

CertSignerFromIssuerAndSecretData is a wrapper for certSignerFromIssuerAndSecretData that returns a Signer interface.

type SignerBuilder

type SignerBuilder func(*certv1alpha1.IssuerSpec, map[string][]byte, kube.Client) (Signer, error)

SignerBuilder creates a Signer from issuer spec, secret data, and a kube client.

Jump to

Keyboard shortcuts

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