fake

package
Version: v0.0.0-...-7f68784 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 3 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 struct {
	CAKey                  []byte
	CACert                 []byte
	DNSNameToCertArtifacts map[string]*generator.Artifacts
}

CertGenerator is a certGenerator for testing.

func (*CertGenerator) Generate

func (cp *CertGenerator) Generate(commonName string) (*generator.Artifacts, error)

Generate generates certificates by matching a common name.

func (*CertGenerator) SetCA

func (cp *CertGenerator) SetCA(CAKey, CACert []byte)

SetCA sets the PEM-encoded CA private key and CA cert for signing the generated serving cert.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL