fake

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

func New

func New() *Fake

func (*Fake) ControlPlaneNamespace

func (f *Fake) ControlPlaneNamespace() string

func (*Fake) ControlPlaneTrustDomain

func (f *Fake) ControlPlaneTrustDomain() spiffeid.TrustDomain

func (*Fake) CurrentTrustAnchors

func (f *Fake) CurrentTrustAnchors(ctx context.Context) ([]byte, error)

func (*Fake) GRPCDialOption

func (f *Fake) GRPCDialOption(id spiffeid.ID) grpc.DialOption

func (*Fake) GRPCDialOptionMTLS

func (f *Fake) GRPCDialOptionMTLS(id spiffeid.ID) grpc.DialOption

func (*Fake) GRPCDialOptionMTLSUnknownTrustDomain

func (f *Fake) GRPCDialOptionMTLSUnknownTrustDomain(ns, appID string) grpc.DialOption

func (*Fake) GRPCServerOptionMTLS

func (f *Fake) GRPCServerOptionMTLS() grpc.ServerOption

func (*Fake) GRPCServerOptionNoClientAuth

func (f *Fake) GRPCServerOptionNoClientAuth() grpc.ServerOption

func (*Fake) Handler

func (f *Fake) Handler(context.Context) (security.Handler, error)

func (*Fake) ID

func (f *Fake) ID() spiffeid.ID

func (*Fake) IdentityDir

func (f *Fake) IdentityDir() *string

func (*Fake) MTLSClientConfig

func (f *Fake) MTLSClientConfig(id spiffeid.ID) *tls.Config

func (*Fake) MTLSEnabled

func (f *Fake) MTLSEnabled() bool

func (*Fake) NetDialerID

func (f *Fake) NetDialerID(ctx context.Context, id spiffeid.ID, timeout time.Duration) func(network, addr string) (net.Conn, error)

func (*Fake) NetListenerID

func (f *Fake) NetListenerID(l net.Listener, id spiffeid.ID) net.Listener

func (*Fake) Run

func (f *Fake) Run(ctx context.Context) error

func (*Fake) TLSServerConfigMTLS

func (f *Fake) TLSServerConfigMTLS(td spiffeid.TrustDomain) (*tls.Config, error)

func (*Fake) TLSServerConfigNoClientAuth

func (f *Fake) TLSServerConfigNoClientAuth() *tls.Config

func (*Fake) TLSServerConfigNoClientAuthOption

func (f *Fake) TLSServerConfigNoClientAuthOption(cfg *tls.Config)

func (*Fake) WatchTrustAnchors

func (f *Fake) WatchTrustAnchors(ctx context.Context, ch chan<- []byte)

func (*Fake) WithControlPlaneNamespaceFn

func (f *Fake) WithControlPlaneNamespaceFn(fn func() string) *Fake

func (*Fake) WithControlPlaneTrustDomainFn

func (f *Fake) WithControlPlaneTrustDomainFn(fn func() spiffeid.TrustDomain) *Fake

func (*Fake) WithCurrentTrustAnchorsFn

func (f *Fake) WithCurrentTrustAnchorsFn(fn func(context.Context) ([]byte, error)) *Fake

func (*Fake) WithGRPCDialOptionFn

func (f *Fake) WithGRPCDialOptionFn(fn func(spiffeid.ID) grpc.DialOption) *Fake

func (*Fake) WithGRPCDialOptionMTLSFn

func (f *Fake) WithGRPCDialOptionMTLSFn(fn func(spiffeid.ID) grpc.DialOption) *Fake

func (*Fake) WithGRPCDialOptionMTLSUnknownTrustDomainFn

func (f *Fake) WithGRPCDialOptionMTLSUnknownTrustDomainFn(fn func(ns, appID string) grpc.DialOption) *Fake

func (*Fake) WithGRPCServerOptionMTLSFn

func (f *Fake) WithGRPCServerOptionMTLSFn(fn func() grpc.ServerOption) *Fake

func (*Fake) WithGRPCServerOptionNoClientAuthFn

func (f *Fake) WithGRPCServerOptionNoClientAuthFn(fn func() grpc.ServerOption) *Fake

func (*Fake) WithMTLSEnabled

func (f *Fake) WithMTLSEnabled(mtls bool) *Fake

func (*Fake) WithNetDialerIDFn

func (f *Fake) WithNetDialerIDFn(fn func(context.Context, spiffeid.ID, time.Duration) func(network, addr string) (net.Conn, error)) *Fake

func (*Fake) WithNetListenerIDFn

func (f *Fake) WithNetListenerIDFn(fn func(net.Listener, spiffeid.ID) net.Listener) *Fake

func (*Fake) WithSVIDContext

func (f *Fake) WithSVIDContext(ctx context.Context) context.Context

func (*Fake) WithTLSServerConfigMTLSFn

func (f *Fake) WithTLSServerConfigMTLSFn(fn func(spiffeid.TrustDomain) (*tls.Config, error)) *Fake

func (*Fake) WithTLSServerConfigNoClientAuthFn

func (f *Fake) WithTLSServerConfigNoClientAuthFn(fn func() *tls.Config) *Fake

func (*Fake) WithTLSServerConfigNoClientAuthOptionFn

func (f *Fake) WithTLSServerConfigNoClientAuthOptionFn(fn func(*tls.Config)) *Fake

func (*Fake) WithWatchTrustAnchorsFn

func (f *Fake) WithWatchTrustAnchorsFn(fn func(context.Context, chan<- []byte)) *Fake

Jump to

Keyboard shortcuts

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