tls

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNSValidatorRoute53  DNSValidator = iota
	DefaultCertificateNS string       = "kcp-glbc"
)
View Source
const TlsIssuerAnnotation = "kuadrant.dev/tls-issuer"

Variables

View Source
var CertNotReadyErr = fmt.Errorf("certificate is not ready yet ")

Functions

func IsCertNotReadyErr

func IsCertNotReadyErr(err error) bool

func NewCertManager

func NewCertManager(c CertManagerConfig) (*certManager, error)

Types

type CertManagerConfig

type CertManagerConfig struct {
	DNSValidator DNSValidator
	CertClient   certmanclient.Interface

	CertProvider CertProvider
	LEConfig     *LEConfig
	Region       string
	// client targeting the glbc workspace cluster
	K8sClient kubernetes.Interface
	// namespace in the control workspace where we create certificates
	CertificateNS string
	// set of domains we allow certs to be created for
	ValidDomains []string
}

type CertProvider

type CertProvider string

type CertStatus

type CertStatus string

type CertificateRequest

type CertificateRequest struct {
	Name        string
	Labels      map[string]string
	Annotations map[string]string
	Host        string
	// contains filtered or unexported fields
}

type DNSValidator

type DNSValidator int

type LEConfig

type LEConfig struct {
	Email string
}

type Provider

type Provider interface {
	IssuerID() string
	Domains() []string
	Create(ctx context.Context, cr CertificateRequest) error
	Delete(ctx context.Context, cr CertificateRequest) error
	Update(ctx context.Context, cr CertificateRequest) error
	GetCertificateSecret(ctx context.Context, cr CertificateRequest) (*v1.Secret, error)
	GetCertificate(ctx context.Context, cr CertificateRequest) (*certman.Certificate, error)
	GetCertificateStatus(ctx context.Context, certReq CertificateRequest) (CertStatus, error)
	IssuerExists(ctx context.Context) (bool, error)
}

Jump to

Keyboard shortcuts

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