evaluator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 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 Interface

type Interface interface {
	Evaluate(*cmapi.CertificateRequest) error
}

Interface is the Evaluator which is used for determining whether a CertificateRequest should be approved or denied.

func New

func New(opts Options) Interface

New constructs a new evaluator.

type Options

type Options struct {
	// TrustDomain is the trust domain that will be asserted when evaluating
	// CertificateRequests URI SANs.
	TrustDomain string

	// CertificateRequestDuration is the duration that users _must_ request for,
	// else the request will be denied.
	CertificateRequestDuration time.Duration
}

Options is the options to configure the evaluator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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