Documentation ¶
Index ¶
- type SecurityVoter
- type SecurityVoter_Expecter
- type SecurityVoter_Vote_Call
- func (_c *SecurityVoter_Vote_Call) Return(_a0 voter.AccessDecision) *SecurityVoter_Vote_Call
- func (_c *SecurityVoter_Vote_Call) Run(run func(allAssignedPermissions []string, desiredPermission string, ...)) *SecurityVoter_Vote_Call
- func (_c *SecurityVoter_Vote_Call) RunAndReturn(run func([]string, string, interface{}) voter.AccessDecision) *SecurityVoter_Vote_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityVoter ¶
SecurityVoter is an autogenerated mock type for the SecurityVoter type
func NewSecurityVoter ¶ added in v3.4.0
func NewSecurityVoter(t mockConstructorTestingTNewSecurityVoter) *SecurityVoter
NewSecurityVoter creates a new instance of SecurityVoter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SecurityVoter) EXPECT ¶ added in v3.5.1
func (_m *SecurityVoter) EXPECT() *SecurityVoter_Expecter
func (*SecurityVoter) Vote ¶
func (_m *SecurityVoter) Vote(allAssignedPermissions []string, desiredPermission string, forObject interface{}) voter.AccessDecision
Vote provides a mock function with given fields: allAssignedPermissions, desiredPermission, forObject
type SecurityVoter_Expecter ¶ added in v3.5.1
type SecurityVoter_Expecter struct {
// contains filtered or unexported fields
}
func (*SecurityVoter_Expecter) Vote ¶ added in v3.5.1
func (_e *SecurityVoter_Expecter) Vote(allAssignedPermissions interface{}, desiredPermission interface{}, forObject interface{}) *SecurityVoter_Vote_Call
Vote is a helper method to define mock.On call
- allAssignedPermissions []string
- desiredPermission string
- forObject interface{}
type SecurityVoter_Vote_Call ¶ added in v3.5.1
SecurityVoter_Vote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Vote'
func (*SecurityVoter_Vote_Call) Return ¶ added in v3.5.1
func (_c *SecurityVoter_Vote_Call) Return(_a0 voter.AccessDecision) *SecurityVoter_Vote_Call
func (*SecurityVoter_Vote_Call) Run ¶ added in v3.5.1
func (_c *SecurityVoter_Vote_Call) Run(run func(allAssignedPermissions []string, desiredPermission string, forObject interface{})) *SecurityVoter_Vote_Call
func (*SecurityVoter_Vote_Call) RunAndReturn ¶ added in v3.5.1
func (_c *SecurityVoter_Vote_Call) RunAndReturn(run func([]string, string, interface{}) voter.AccessDecision) *SecurityVoter_Vote_Call
Click to show internal directories.
Click to hide internal directories.