mocks

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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 MockContext

type MockContext struct {
	mock.Mock
}

func (*MockContext) AddCookieForUpstream

func (m *MockContext) AddCookieForUpstream(name, value string)

func (*MockContext) AddHeaderForUpstream

func (m *MockContext) AddHeaderForUpstream(name, value string)

func (*MockContext) AppContext

func (m *MockContext) AppContext() context.Context

func (*MockContext) RequestBody

func (m *MockContext) RequestBody() []byte

func (*MockContext) RequestClientIPs

func (m *MockContext) RequestClientIPs() []string

func (*MockContext) RequestCookie

func (m *MockContext) RequestCookie(name string) string

func (*MockContext) RequestFormParameter

func (m *MockContext) RequestFormParameter(name string) string

func (*MockContext) RequestHeader

func (m *MockContext) RequestHeader(name string) string

func (*MockContext) RequestHeaders

func (m *MockContext) RequestHeaders() map[string]string

func (*MockContext) RequestMethod

func (m *MockContext) RequestMethod() string

func (*MockContext) RequestQueryParameter

func (m *MockContext) RequestQueryParameter(name string) string

func (*MockContext) RequestURL

func (m *MockContext) RequestURL() *url.URL

func (*MockContext) SetPipelineError

func (m *MockContext) SetPipelineError(err error)

func (*MockContext) Signer

func (m *MockContext) Signer() heimdall.JWTSigner

type MockJWTSigner

type MockJWTSigner struct {
	mock.Mock
}

func (*MockJWTSigner) Hash

func (m *MockJWTSigner) Hash() []byte

func (*MockJWTSigner) Keys

func (m *MockJWTSigner) Keys() []jose.JSONWebKey

func (*MockJWTSigner) Sign

func (m *MockJWTSigner) Sign(subjectID string, ttl time.Duration, claims map[string]any) (string, error)

Jump to

Keyboard shortcuts

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