Documentation
¶
Index ¶
- type Service
- func (_mock *Service) CreateRoute(ctx context.Context, session *authn.Session, route *router.RouteRule) (*router.RouteRule, error)
- func (_mock *Service) DeleteRoute(ctx context.Context, session *authn.Session, name string) error
- func (_m *Service) EXPECT() *Service_Expecter
- func (_mock *Service) GetAttestationPolicy(ctx context.Context, session *authn.Session) ([]byte, error)
- func (_mock *Service) GetRoute(ctx context.Context, session *authn.Session, name string) (*router.RouteRule, error)
- func (_mock *Service) ListRoutes(ctx context.Context, session *authn.Session, offset uint64, limit uint64) ([]router.RouteRule, uint64, error)
- func (_mock *Service) ProxyRequest(ctx context.Context, session *authn.Session, path string) error
- func (_mock *Service) Secure() string
- func (_mock *Service) UpdateAttestationPolicy(ctx context.Context, session *authn.Session, policy []byte) error
- func (_mock *Service) UpdateRoute(ctx context.Context, session *authn.Session, name string, ...) (*router.RouteRule, error)
- type Service_CreateRoute_Call
- func (_c *Service_CreateRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_CreateRoute_Call
- func (_c *Service_CreateRoute_Call) Run(run func(ctx context.Context, session *authn.Session, route *router.RouteRule)) *Service_CreateRoute_Call
- func (_c *Service_CreateRoute_Call) RunAndReturn(...) *Service_CreateRoute_Call
- type Service_DeleteRoute_Call
- func (_c *Service_DeleteRoute_Call) Return(err error) *Service_DeleteRoute_Call
- func (_c *Service_DeleteRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string)) *Service_DeleteRoute_Call
- func (_c *Service_DeleteRoute_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, name string) error) *Service_DeleteRoute_Call
- type Service_Expecter
- func (_e *Service_Expecter) CreateRoute(ctx interface{}, session interface{}, route interface{}) *Service_CreateRoute_Call
- func (_e *Service_Expecter) DeleteRoute(ctx interface{}, session interface{}, name interface{}) *Service_DeleteRoute_Call
- func (_e *Service_Expecter) GetAttestationPolicy(ctx interface{}, session interface{}) *Service_GetAttestationPolicy_Call
- func (_e *Service_Expecter) GetRoute(ctx interface{}, session interface{}, name interface{}) *Service_GetRoute_Call
- func (_e *Service_Expecter) ListRoutes(ctx interface{}, session interface{}, offset interface{}, limit interface{}) *Service_ListRoutes_Call
- func (_e *Service_Expecter) ProxyRequest(ctx interface{}, session interface{}, path interface{}) *Service_ProxyRequest_Call
- func (_e *Service_Expecter) Secure() *Service_Secure_Call
- func (_e *Service_Expecter) UpdateAttestationPolicy(ctx interface{}, session interface{}, policy interface{}) *Service_UpdateAttestationPolicy_Call
- func (_e *Service_Expecter) UpdateRoute(ctx interface{}, session interface{}, name interface{}, route interface{}) *Service_UpdateRoute_Call
- type Service_GetAttestationPolicy_Call
- func (_c *Service_GetAttestationPolicy_Call) Return(bytes []byte, err error) *Service_GetAttestationPolicy_Call
- func (_c *Service_GetAttestationPolicy_Call) Run(run func(ctx context.Context, session *authn.Session)) *Service_GetAttestationPolicy_Call
- func (_c *Service_GetAttestationPolicy_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session) ([]byte, error)) *Service_GetAttestationPolicy_Call
- type Service_GetRoute_Call
- func (_c *Service_GetRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_GetRoute_Call
- func (_c *Service_GetRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string)) *Service_GetRoute_Call
- func (_c *Service_GetRoute_Call) RunAndReturn(...) *Service_GetRoute_Call
- type Service_ListRoutes_Call
- type Service_ProxyRequest_Call
- func (_c *Service_ProxyRequest_Call) Return(err error) *Service_ProxyRequest_Call
- func (_c *Service_ProxyRequest_Call) Run(run func(ctx context.Context, session *authn.Session, path string)) *Service_ProxyRequest_Call
- 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_UpdateAttestationPolicy_Call
- func (_c *Service_UpdateAttestationPolicy_Call) Return(err error) *Service_UpdateAttestationPolicy_Call
- func (_c *Service_UpdateAttestationPolicy_Call) Run(run func(ctx context.Context, session *authn.Session, policy []byte)) *Service_UpdateAttestationPolicy_Call
- func (_c *Service_UpdateAttestationPolicy_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, policy []byte) error) *Service_UpdateAttestationPolicy_Call
- type Service_UpdateRoute_Call
- func (_c *Service_UpdateRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_UpdateRoute_Call
- func (_c *Service_UpdateRoute_Call) Run(run func(ctx context.Context, session *authn.Session, name string, ...)) *Service_UpdateRoute_Call
- func (_c *Service_UpdateRoute_Call) RunAndReturn(...) *Service_UpdateRoute_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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 ¶
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 ¶
ProxyRequest provides a mock function for the type Service
type Service_CreateRoute_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 (_c *Service_CreateRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_CreateRoute_Call
func (*Service_CreateRoute_Call) Run ¶
func (_c *Service_CreateRoute_Call) Run(run func(ctx context.Context, session *authn.Session, route *router.RouteRule)) *Service_CreateRoute_Call
func (*Service_CreateRoute_Call) RunAndReturn ¶
type Service_DeleteRoute_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 (_c *Service_DeleteRoute_Call) Return(err error) *Service_DeleteRoute_Call
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 ¶
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 (_c *Service_GetAttestationPolicy_Call) Return(bytes []byte, err error) *Service_GetAttestationPolicy_Call
func (*Service_GetAttestationPolicy_Call) Run ¶
func (_c *Service_GetAttestationPolicy_Call) Run(run func(ctx context.Context, session *authn.Session)) *Service_GetAttestationPolicy_Call
func (*Service_GetAttestationPolicy_Call) RunAndReturn ¶
func (_c *Service_GetAttestationPolicy_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session) ([]byte, error)) *Service_GetAttestationPolicy_Call
type Service_GetRoute_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 ¶
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 ¶
type Service_ProxyRequest_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 (_c *Service_ProxyRequest_Call) Return(err error) *Service_ProxyRequest_Call
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 ¶
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 (_c *Service_Secure_Call) Return(s string) *Service_Secure_Call
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 ¶
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 (_c *Service_UpdateAttestationPolicy_Call) Return(err error) *Service_UpdateAttestationPolicy_Call
func (*Service_UpdateAttestationPolicy_Call) Run ¶
func (_c *Service_UpdateAttestationPolicy_Call) Run(run func(ctx context.Context, session *authn.Session, policy []byte)) *Service_UpdateAttestationPolicy_Call
func (*Service_UpdateAttestationPolicy_Call) RunAndReturn ¶
func (_c *Service_UpdateAttestationPolicy_Call) RunAndReturn(run func(ctx context.Context, session *authn.Session, policy []byte) error) *Service_UpdateAttestationPolicy_Call
type Service_UpdateRoute_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 (_c *Service_UpdateRoute_Call) Return(routeRule *router.RouteRule, err error) *Service_UpdateRoute_Call
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