mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Service) CreateRoute

func (_mock *Service) CreateRoute(ctx context.Context, session *authn.Session, route *router.RouteRule) (*router.RouteRule, error)

CreateRoute provides a mock function for the type Service

func (*Service) DeleteRoute

func (_mock *Service) DeleteRoute(ctx context.Context, session *authn.Session, name string) error

DeleteRoute provides a mock function for the type Service

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GetAttestationPolicy

func (_mock *Service) GetAttestationPolicy(ctx context.Context, session *authn.Session) ([]byte, error)

GetAttestationPolicy provides a mock function for the type Service

func (*Service) GetRoute

func (_mock *Service) GetRoute(ctx context.Context, session *authn.Session, name string) (*router.RouteRule, error)

GetRoute provides a mock function for the type Service

func (*Service) ListRoutes

func (_mock *Service) ListRoutes(ctx context.Context, session *authn.Session, offset uint64, limit uint64) ([]router.RouteRule, uint64, error)

ListRoutes provides a mock function for the type Service

func (*Service) ProxyRequest

func (_mock *Service) ProxyRequest(ctx context.Context, session *authn.Session, path string) error

ProxyRequest provides a mock function for the type Service

func (*Service) Secure

func (_mock *Service) Secure() string

Secure provides a mock function for the type Service

func (*Service) UpdateAttestationPolicy

func (_mock *Service) UpdateAttestationPolicy(ctx context.Context, session *authn.Session, policy []byte) error

UpdateAttestationPolicy provides a mock function for the type Service

func (*Service) UpdateRoute

func (_mock *Service) UpdateRoute(ctx context.Context, session *authn.Session, name string, route *router.RouteRule) (*router.RouteRule, error)

UpdateRoute provides a mock function for the type Service

type Service_CreateRoute_Call

type Service_CreateRoute_Call struct {
	*mock.Call
}

Service_CreateRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRoute'

func (*Service_CreateRoute_Call) Return

func (*Service_CreateRoute_Call) Run

func (*Service_CreateRoute_Call) RunAndReturn

func (_c *Service_CreateRoute_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, route *router.RouteRule) (*router.RouteRule, error)) *Service_CreateRoute_Call

type Service_DeleteRoute_Call

type Service_DeleteRoute_Call struct {
	*mock.Call
}

Service_DeleteRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRoute'

func (*Service_DeleteRoute_Call) Return

func (*Service_DeleteRoute_Call) Run

func (_c *Service_DeleteRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string)) *Service_DeleteRoute_Call

func (*Service_DeleteRoute_Call) RunAndReturn

func (_c *Service_DeleteRoute_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, name string) error) *Service_DeleteRoute_Call

type Service_Expecter

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

func (*Service_Expecter) CreateRoute

func (_e *Service_Expecter) CreateRoute(ctx interface{}, session interface{}, route interface{}) *Service_CreateRoute_Call

CreateRoute is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • route *router.RouteRule

func (*Service_Expecter) DeleteRoute

func (_e *Service_Expecter) DeleteRoute(ctx interface{}, session interface{}, name interface{}) *Service_DeleteRoute_Call

DeleteRoute is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • name string

func (*Service_Expecter) GetAttestationPolicy

func (_e *Service_Expecter) GetAttestationPolicy(ctx interface{}, session interface{}) *Service_GetAttestationPolicy_Call

GetAttestationPolicy is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session

func (*Service_Expecter) GetRoute

func (_e *Service_Expecter) GetRoute(ctx interface{}, session interface{}, name interface{}) *Service_GetRoute_Call

GetRoute is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • name string

func (*Service_Expecter) ListRoutes

func (_e *Service_Expecter) ListRoutes(ctx interface{}, session interface{}, offset interface{}, limit interface{}) *Service_ListRoutes_Call

ListRoutes is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • offset uint64
  • limit uint64

func (*Service_Expecter) ProxyRequest

func (_e *Service_Expecter) ProxyRequest(ctx interface{}, session interface{}, path interface{}) *Service_ProxyRequest_Call

ProxyRequest is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • path string

func (*Service_Expecter) Secure

func (_e *Service_Expecter) Secure() *Service_Secure_Call

Secure is a helper method to define mock.On call

func (*Service_Expecter) UpdateAttestationPolicy

func (_e *Service_Expecter) UpdateAttestationPolicy(ctx interface{}, session interface{}, policy interface{}) *Service_UpdateAttestationPolicy_Call

UpdateAttestationPolicy is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • policy []byte

func (*Service_Expecter) UpdateRoute

func (_e *Service_Expecter) UpdateRoute(ctx interface{}, session interface{}, name interface{}, route interface{}) *Service_UpdateRoute_Call

UpdateRoute is a helper method to define mock.On call

  • ctx context.Context
  • session *authn.Session
  • name string
  • route *router.RouteRule

type Service_GetAttestationPolicy_Call

type Service_GetAttestationPolicy_Call struct {
	*mock.Call
}

Service_GetAttestationPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAttestationPolicy'

func (*Service_GetAttestationPolicy_Call) Return

func (*Service_GetAttestationPolicy_Call) Run

func (*Service_GetAttestationPolicy_Call) RunAndReturn

type Service_GetRoute_Call

type Service_GetRoute_Call struct {
	*mock.Call
}

Service_GetRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoute'

func (*Service_GetRoute_Call) Return

func (_c *Service_GetRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_GetRoute_Call

func (*Service_GetRoute_Call) Run

func (_c *Service_GetRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string)) *Service_GetRoute_Call

func (*Service_GetRoute_Call) RunAndReturn

func (_c *Service_GetRoute_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, name string) (*router.RouteRule, error)) *Service_GetRoute_Call

type Service_ListRoutes_Call

type Service_ListRoutes_Call struct {
	*mock.Call
}

Service_ListRoutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoutes'

func (*Service_ListRoutes_Call) Return

func (_c *Service_ListRoutes_Call) Return(routes []router.RouteRule, total uint64, err error) *Service_ListRoutes_Call

func (*Service_ListRoutes_Call) Run

func (_c *Service_ListRoutes_Call) Run(run func(ctx context.Context, session *authn.Session, offset uint64, limit uint64)) *Service_ListRoutes_Call

func (*Service_ListRoutes_Call) RunAndReturn

func (_c *Service_ListRoutes_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, offset uint64, limit uint64) ([]router.RouteRule, uint64, error)) *Service_ListRoutes_Call

type Service_ProxyRequest_Call

type Service_ProxyRequest_Call struct {
	*mock.Call
}

Service_ProxyRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProxyRequest'

func (*Service_ProxyRequest_Call) Return

func (*Service_ProxyRequest_Call) Run

func (_c *Service_ProxyRequest_Call) Run(run func(ctx context.Context, session *authn.Session, path string)) *Service_ProxyRequest_Call

func (*Service_ProxyRequest_Call) RunAndReturn

func (_c *Service_ProxyRequest_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, path string) error) *Service_ProxyRequest_Call

type Service_Secure_Call

type Service_Secure_Call struct {
	*mock.Call
}

Service_Secure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Secure'

func (*Service_Secure_Call) Return

func (*Service_Secure_Call) Run

func (_c *Service_Secure_Call) Run(run func()) *Service_Secure_Call

func (*Service_Secure_Call) RunAndReturn

func (_c *Service_Secure_Call) RunAndReturn(run func() string) *Service_Secure_Call

type Service_UpdateAttestationPolicy_Call

type Service_UpdateAttestationPolicy_Call struct {
	*mock.Call
}

Service_UpdateAttestationPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAttestationPolicy'

func (*Service_UpdateAttestationPolicy_Call) Return

func (*Service_UpdateAttestationPolicy_Call) Run

func (*Service_UpdateAttestationPolicy_Call) RunAndReturn

type Service_UpdateRoute_Call

type Service_UpdateRoute_Call struct {
	*mock.Call
}

Service_UpdateRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRoute'

func (*Service_UpdateRoute_Call) Return

func (*Service_UpdateRoute_Call) Run

func (_c *Service_UpdateRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string, route *router.RouteRule)) *Service_UpdateRoute_Call

func (*Service_UpdateRoute_Call) RunAndReturn

func (_c *Service_UpdateRoute_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, name string, route *router.RouteRule) (*router.RouteRule, error)) *Service_UpdateRoute_Call

Jump to

Keyboard shortcuts

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