providers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const LEStagingServerURL = "https://acme-staging-v02.api.letsencrypt.org/directory"

Variables

View Source
var DefaultAcmeStagingProvider = func() lib.CAProvider {
	var certs []*x509.Certificate
	if LEStagingRootX1 != "" {
		caCerts, _, err := cert.ParseRootCAs([]byte(LEStagingRootX1))
		if err != nil {
			panic(errors.Wrap(err, "failed to parse LEStagingRootX1"))
		}
		certs = append(certs, caCerts...)
	}
	if LEStagingRootX2 != "" {
		caCerts, _, err := cert.ParseRootCAs([]byte(LEStagingRootX2))
		if err != nil {
			panic(errors.Wrap(err, "failed to parse LEStagingRootX2"))
		}
		certs = append(certs, caCerts...)
	}
	return AcmeStagingProvider{certs: certs}
}()

Functions

func NewCAProvider

func NewCAProvider(c client.Client, opts IssuerOptions, ref api.ObjectRef, obj client.Object) (lib.CAProvider, error)

func NewVault

func NewVault(c client.Reader, opts IssuerOptions) (lib.CAProvider, error)

Types

type AcmeStagingProvider added in v0.0.2

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

func (AcmeStagingProvider) GetCAs added in v0.0.2

type IssuerOptions

type IssuerOptions struct {
	// ClusterResourceNamespace is the namespace to store resources created by
	// non-namespaced resources (e.g. ClusterIssuer) in.
	ClusterResourceNamespace string
}

func (IssuerOptions) ResourceNamespace

func (o IssuerOptions) ResourceNamespace(iss cmapi.GenericIssuer) string

type IssuerProvider

type IssuerProvider struct {
	Reader client.Reader
}

func (*IssuerProvider) GetCAs

func (c *IssuerProvider) GetCAs(obj client.Object, _ string) ([]*x509.Certificate, error)

type SecretProvider

type SecretProvider struct{}

func (*SecretProvider) GetCAs

func (c *SecretProvider) GetCAs(obj client.Object, key string) ([]*x509.Certificate, error)

type VaultProvider

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

func (*VaultProvider) GetCAs

func (v *VaultProvider) GetCAs(obj client.Object, _ string) ([]*x509.Certificate, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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