types

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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