types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package types defines shared types for cert-manager

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateIssuer

type CertificateIssuer interface {
	NewCertificate(ctx context.Context, req *CertificateRequest) (string, string, error)
	GetCACertificate(ctx context.Context) (string, error)
	GetCRL(ctx context.Context) (string, error)
	RawCertificate(ctx context.Context, sans string, ttl int) (string, string, error)
}

CertificateIssuer defines a certificate issuer interface

type CertificateRequest

type CertificateRequest struct {
	// Name should be unique for a particular CertificateType
	Name string `json:"name,omitempty"`

	// App identifies the specific app
	App string `json:"app,omitempty"`

	TTL int `json:"ttl,omitempty"`
}

CertificateRequest defines a request

func (*CertificateRequest) UniqueName

func (r *CertificateRequest) UniqueName(baseDNS string) string

UniqueName returns a sans per node/app combination

type CertificateResponse

type CertificateResponse struct {
	Key         string `json:"key,omitempty"`
	Certificate string `json:"certificate,omitempty"`
}

CertificateResponse defines a response

Jump to

Keyboard shortcuts

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