fake

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 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 added in v0.1.5

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
y or Y : Canonical URL