Documentation ¶
Index ¶
- type AdapterMock
- func (_m *AdapterMock) AddPolicy(sec string, ptype string, rule []string) error
- func (_m *AdapterMock) LoadPolicy(_a0 model.Model) error
- func (_m *AdapterMock) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
- func (_m *AdapterMock) RemovePolicy(sec string, ptype string, rule []string) error
- func (_m *AdapterMock) SavePolicy(_a0 model.Model) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterMock ¶
AdapterMock is an autogenerated mock type for the AdapterMock type
func (*AdapterMock) AddPolicy ¶
func (_m *AdapterMock) AddPolicy(sec string, ptype string, rule []string) error
AddPolicy provides a mock function with given fields: sec, ptype, rule
func (*AdapterMock) LoadPolicy ¶
func (_m *AdapterMock) LoadPolicy(_a0 model.Model) error
LoadPolicy provides a mock function with given fields: _a0
func (*AdapterMock) RemoveFilteredPolicy ¶
func (_m *AdapterMock) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
RemoveFilteredPolicy provides a mock function with given fields: sec, ptype, fieldIndex, fieldValues
func (*AdapterMock) RemovePolicy ¶
func (_m *AdapterMock) RemovePolicy(sec string, ptype string, rule []string) error
RemovePolicy provides a mock function with given fields: sec, ptype, rule
func (*AdapterMock) SavePolicy ¶
func (_m *AdapterMock) SavePolicy(_a0 model.Model) error
SavePolicy provides a mock function with given fields: _a0
Click to show internal directories.
Click to hide internal directories.