mock

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

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

func New

func New(t *testing.T, expectedRequest *authz.IsRequest, decision *authz.Decision) *Authorizer

func (*Authorizer) Compile

func (*Authorizer) DecisionTree

func (*Authorizer) GetPolicy

func (*Authorizer) Info

func (*Authorizer) Is

func (*Authorizer) ListPolicies

func (*Authorizer) Query

type ServerStream

type ServerStream struct {
	Ctx context.Context
}

Mock grpc.ServerStream.

func (*ServerStream) Context

func (s *ServerStream) Context() context.Context

func (*ServerStream) RecvMsg

func (s *ServerStream) RecvMsg(_ interface{}) error

func (*ServerStream) SendHeader

func (s *ServerStream) SendHeader(metadata.MD) error

func (*ServerStream) SendMsg

func (s *ServerStream) SendMsg(_ interface{}) error

func (*ServerStream) SetHeader

func (s *ServerStream) SetHeader(metadata.MD) error

func (*ServerStream) SetTrailer

func (s *ServerStream) SetTrailer(metadata.MD)

Jump to

Keyboard shortcuts

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