provisioner

package
v0.0.0-...-6662229 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultDurationInterval The default validity duration, if not provided.
	DefaultDurationInterval = time.Hour * 24 * 7
	// OCICertManagerTagKey The default tag key on a certificate
	OCICertManagerTagKey = "cert-manager"
	// OCICertManagerTagValue The default tag value on a certificate
	OCICertManagerTagValue          = "true"
	OCICertificatePrivateBundleType = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

Collection stores cached Provisioners, stored by namespaced names of the issuer.

func (*Collection) Store

func (c *Collection) Store(namespacedName types.NamespacedName, provisioner *Provisioner)

Store adds a provisioner to the collection.

type GenericProvisioner

type GenericProvisioner interface {
	Sign(ctx context.Context, cr *cmapi.CertificateRequest, log logr.Logger) ([]byte, []byte, error)
}

GenericProvisioner abstracts over the Provisioner type for mocking purposes

type Provisioner

type Provisioner struct {
	// contains filtered or unexported fields
}

func (*Provisioner) Sign

func (p *Provisioner) Sign(ctx context.Context, cr *cmapi.CertificateRequest, log logr.Logger) ([]byte, error)

func (*Provisioner) Validate

func (p *Provisioner) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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