mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PublicDashboards: Add middleware function (#80582)
This commit is contained in:
parent
0ba7866e2c
commit
fb4125dfbb
@ -83,3 +83,6 @@ func (m *Middleware) HandleView(c *contextmodel.ReqContext) {
|
||||
}
|
||||
func (m *Middleware) HandleAccessView(c *contextmodel.ReqContext) {
|
||||
}
|
||||
func (m *Middleware) HandleConfirmAccessView(c *contextmodel.ReqContext) {
|
||||
|
||||
}
|
||||
|
@ -12,18 +12,23 @@ type FakePublicDashboardMiddleware struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// HandleAccessView provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleAccessView(c *contextmodel.ReqContext) {
|
||||
_m.Called(c)
|
||||
}
|
||||
|
||||
// HandleApi provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleApi(c *contextmodel.ReqContext) {
|
||||
_m.Called(c)
|
||||
}
|
||||
|
||||
// HandleGet provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleView(c *contextmodel.ReqContext) {
|
||||
// HandleConfirmAccessView provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleConfirmAccessView(c *contextmodel.ReqContext) {
|
||||
_m.Called(c)
|
||||
}
|
||||
|
||||
// HandleRequestOrConfirmAccess provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleAccessView(c *contextmodel.ReqContext) {
|
||||
// HandleView provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleView(c *contextmodel.ReqContext) {
|
||||
_m.Called(c)
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.36.1. DO NOT EDIT.
|
||||
|
||||
package publicdashboards
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.36.1. DO NOT EDIT.
|
||||
|
||||
package publicdashboards
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.32.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.36.1. DO NOT EDIT.
|
||||
|
||||
package publicdashboards
|
||||
|
||||
|
@ -70,4 +70,5 @@ type Middleware interface {
|
||||
HandleApi(c *contextmodel.ReqContext)
|
||||
HandleView(c *contextmodel.ReqContext)
|
||||
HandleAccessView(c *contextmodel.ReqContext)
|
||||
HandleConfirmAccessView(c *contextmodel.ReqContext)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user