Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionSet ¶
PermissionSet is an autogenerated mock type for the PermissionSet type
func NewPermissionSet ¶ added in v3.4.0
func NewPermissionSet(t interface { mock.TestingT Cleanup(func()) }) *PermissionSet
NewPermissionSet creates a new instance of PermissionSet. 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 (*PermissionSet) EXPECT ¶ added in v3.5.1
func (_m *PermissionSet) EXPECT() *PermissionSet_Expecter
func (*PermissionSet) Permissions ¶
func (_m *PermissionSet) Permissions() []string
Permissions provides a mock function with given fields:
type PermissionSet_Expecter ¶ added in v3.5.1
type PermissionSet_Expecter struct {
// contains filtered or unexported fields
}
func (*PermissionSet_Expecter) Permissions ¶ added in v3.5.1
func (_e *PermissionSet_Expecter) Permissions() *PermissionSet_Permissions_Call
Permissions is a helper method to define mock.On call
type PermissionSet_Permissions_Call ¶ added in v3.5.1
PermissionSet_Permissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Permissions'
func (*PermissionSet_Permissions_Call) Return ¶ added in v3.5.1
func (_c *PermissionSet_Permissions_Call) Return(_a0 []string) *PermissionSet_Permissions_Call
func (*PermissionSet_Permissions_Call) Run ¶ added in v3.5.1
func (_c *PermissionSet_Permissions_Call) Run(run func()) *PermissionSet_Permissions_Call
func (*PermissionSet_Permissions_Call) RunAndReturn ¶ added in v3.5.1
func (_c *PermissionSet_Permissions_Call) RunAndReturn(run func() []string) *PermissionSet_Permissions_Call
type Role ¶
Role is an autogenerated mock type for the Role type
func NewRole ¶ added in v3.4.0
NewRole creates a new instance of Role. 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 (*Role) EXPECT ¶ added in v3.5.1
func (_m *Role) EXPECT() *Role_Expecter
func (*Role) Permissions ¶
Permissions provides a mock function with given fields:
type Role_Expecter ¶ added in v3.5.1
type Role_Expecter struct {
// contains filtered or unexported fields
}
func (*Role_Expecter) Label ¶ added in v3.5.1
func (_e *Role_Expecter) Label() *Role_Label_Call
Label is a helper method to define mock.On call
func (*Role_Expecter) Permissions ¶ added in v3.5.1
func (_e *Role_Expecter) Permissions() *Role_Permissions_Call
Permissions is a helper method to define mock.On call
type Role_Label_Call ¶ added in v3.5.1
Role_Label_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Label'
func (*Role_Label_Call) Return ¶ added in v3.5.1
func (_c *Role_Label_Call) Return(_a0 string) *Role_Label_Call
func (*Role_Label_Call) Run ¶ added in v3.5.1
func (_c *Role_Label_Call) Run(run func()) *Role_Label_Call
func (*Role_Label_Call) RunAndReturn ¶ added in v3.5.1
func (_c *Role_Label_Call) RunAndReturn(run func() string) *Role_Label_Call
type Role_Permissions_Call ¶ added in v3.5.1
Role_Permissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Permissions'
func (*Role_Permissions_Call) Return ¶ added in v3.5.1
func (_c *Role_Permissions_Call) Return(_a0 []string) *Role_Permissions_Call
func (*Role_Permissions_Call) Run ¶ added in v3.5.1
func (_c *Role_Permissions_Call) Run(run func()) *Role_Permissions_Call
func (*Role_Permissions_Call) RunAndReturn ¶ added in v3.5.1
func (_c *Role_Permissions_Call) RunAndReturn(run func() []string) *Role_Permissions_Call