generator

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertGenerator

type CertGenerator interface {
	MakeClientCert(name string, groups []string, duration time.Duration) ([]byte, []byte, error)
	MakeServerCert(namespace, service string, duration time.Duration) ([]byte, []byte, error)
}

CertGenerator is an interface for creating certs

type FetchCertGenerator

type FetchCertGenerator struct {
	Fetcher fetcher.CertFetcher
}

FetchCertGenerator fetches and generates certs

func (*FetchCertGenerator) MakeClientCert

func (cg *FetchCertGenerator) MakeClientCert(name string, groups []string, duration time.Duration) ([]byte, []byte, error)

MakeClientCert generates a client cert

func (*FetchCertGenerator) MakeServerCert

func (cg *FetchCertGenerator) MakeServerCert(namespace, service string, duration time.Duration) ([]byte, []byte, error)

MakeServerCert generates a server cert

Jump to

Keyboard shortcuts

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