Documentation ¶
Overview ¶
Package mock_metathings_identityd2_policy is a generated GoMock package.
Index ¶
- type MockEnforcer
- func (m *MockEnforcer) AddGroup(domain, group string) error
- func (m *MockEnforcer) AddObjectToKind(object, kind string) error
- func (m *MockEnforcer) AddSubjectToRole(subject, role string) error
- func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
- func (m *MockEnforcer) Enforce(domain, group, subject, object, action interface{}) error
- func (m *MockEnforcer) RemoveGroup(domain, group string) error
- func (m *MockEnforcer) RemoveObjectFromKind(object, kind string) error
- func (m *MockEnforcer) RemoveSubjectFromRole(subject, role string) error
- type MockEnforcerMockRecorder
- func (mr *MockEnforcerMockRecorder) AddGroup(domain, group interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) AddObjectToKind(object, kind interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) AddSubjectToRole(subject, role interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) Enforce(domain, group, subject, object, action interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) RemoveGroup(domain, group interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) RemoveObjectFromKind(object, kind interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) RemoveSubjectFromRole(subject, role interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnforcer ¶
type MockEnforcer struct {
// contains filtered or unexported fields
}
MockEnforcer is a mock of Enforcer interface
func NewMockEnforcer ¶
func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer
NewMockEnforcer creates a new mock instance
func (*MockEnforcer) AddGroup ¶
func (m *MockEnforcer) AddGroup(domain, group string) error
AddGroup mocks base method
func (*MockEnforcer) AddObjectToKind ¶
func (m *MockEnforcer) AddObjectToKind(object, kind string) error
AddObjectToKind mocks base method
func (*MockEnforcer) AddSubjectToRole ¶
func (m *MockEnforcer) AddSubjectToRole(subject, role string) error
AddSubjectToRole mocks base method
func (*MockEnforcer) EXPECT ¶
func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEnforcer) Enforce ¶
func (m *MockEnforcer) Enforce(domain, group, subject, object, action interface{}) error
Enforce mocks base method
func (*MockEnforcer) RemoveGroup ¶
func (m *MockEnforcer) RemoveGroup(domain, group string) error
RemoveGroup mocks base method
func (*MockEnforcer) RemoveObjectFromKind ¶
func (m *MockEnforcer) RemoveObjectFromKind(object, kind string) error
RemoveObjectFromKind mocks base method
func (*MockEnforcer) RemoveSubjectFromRole ¶
func (m *MockEnforcer) RemoveSubjectFromRole(subject, role string) error
RemoveSubjectFromRole mocks base method
type MockEnforcerMockRecorder ¶
type MockEnforcerMockRecorder struct {
// contains filtered or unexported fields
}
MockEnforcerMockRecorder is the mock recorder for MockEnforcer
func (*MockEnforcerMockRecorder) AddGroup ¶
func (mr *MockEnforcerMockRecorder) AddGroup(domain, group interface{}) *gomock.Call
AddGroup indicates an expected call of AddGroup
func (*MockEnforcerMockRecorder) AddObjectToKind ¶
func (mr *MockEnforcerMockRecorder) AddObjectToKind(object, kind interface{}) *gomock.Call
AddObjectToKind indicates an expected call of AddObjectToKind
func (*MockEnforcerMockRecorder) AddSubjectToRole ¶
func (mr *MockEnforcerMockRecorder) AddSubjectToRole(subject, role interface{}) *gomock.Call
AddSubjectToRole indicates an expected call of AddSubjectToRole
func (*MockEnforcerMockRecorder) Enforce ¶
func (mr *MockEnforcerMockRecorder) Enforce(domain, group, subject, object, action interface{}) *gomock.Call
Enforce indicates an expected call of Enforce
func (*MockEnforcerMockRecorder) RemoveGroup ¶
func (mr *MockEnforcerMockRecorder) RemoveGroup(domain, group interface{}) *gomock.Call
RemoveGroup indicates an expected call of RemoveGroup
func (*MockEnforcerMockRecorder) RemoveObjectFromKind ¶
func (mr *MockEnforcerMockRecorder) RemoveObjectFromKind(object, kind interface{}) *gomock.Call
RemoveObjectFromKind indicates an expected call of RemoveObjectFromKind
func (*MockEnforcerMockRecorder) RemoveSubjectFromRole ¶
func (mr *MockEnforcerMockRecorder) RemoveSubjectFromRole(subject, role interface{}) *gomock.Call
RemoveSubjectFromRole indicates an expected call of RemoveSubjectFromRole