fake

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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 FakeTLS

type FakeTLS struct {
	// contains filtered or unexported fields
}

FakeTLS is a fake implementation of tls.Interface that can be used for testing.

func New

func New() *FakeTLS

func (*FakeTLS) Config

func (f *FakeTLS) Config(ctx context.Context) (*tls.Config, error)

func (*FakeTLS) RootCAs

func (f *FakeTLS) RootCAs() rootca.RootCAs

func (*FakeTLS) SubscribeRootCAsEvent

func (f *FakeTLS) SubscribeRootCAsEvent() <-chan event.GenericEvent

func (*FakeTLS) TrustDomain

func (f *FakeTLS) TrustDomain() string

func (*FakeTLS) WithRootCAs

func (f *FakeTLS) WithRootCAs(rootCAsPEM []byte, rootCAsPool *x509.CertPool) *FakeTLS

Jump to

Keyboard shortcuts

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