Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PKI

type PKI struct {
	RootCertPEM   []byte
	RootCert      *x509.Certificate
	LeafCert      *x509.Certificate
	LeafCertPEM   []byte
	LeafPKPEM     []byte
	LeafPK        crypto.Signer
	ClientCertPEM []byte
	ClientCert    *x509.Certificate
	ClientPKPEM   []byte
	ClientPK      crypto.Signer
	// contains filtered or unexported fields
}

func GenPKI

func GenPKI(t *testing.T, opts PKIOptions) PKI

func GenPKIError

func GenPKIError(opts PKIOptions) (PKI, error)

func (PKI) ClientGRPCCtx

func (p PKI) ClientGRPCCtx(t *testing.T) context.Context

type PKIOptions

type PKIOptions struct {
	LeafDNS   string
	LeafID    spiffeid.ID
	ClientDNS string
	ClientID  spiffeid.ID
}

Jump to

Keyboard shortcuts

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