fake

package
v1.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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) 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