certificates

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package certificates renews certificate authorities and identity Secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace    string
	IssuerSecret string
	Targets      []Target
	Lifetime     time.Duration
	RenewBefore  time.Duration
	Overlap      time.Duration
}

type Manager

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

func New

func New(config *Config, client corev1client.CoreV1Interface) (*Manager, error)

func (*Manager) Renew

func (m *Manager) Renew(ctx context.Context) (Result, error)

Renew persists the next generation before publishing any of its identities.

type Result

type Result struct {
	Created   bool
	Renewed   bool
	ExpiresAt time.Time
}

type Target

type Target struct {
	SecretName string           `json:"secret_name"`
	DNSName    string           `json:"dns_name"`
	Usage      x509.ExtKeyUsage `json:"usage"`
}

Jump to

Keyboard shortcuts

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