Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchQuery ¶
func MatchQuery(allNamespaces bool, expected *cage_k8s_identity.Query) gomock.Matcher
MatchQuery returns a matcher to assert the equality of Query fields.
Types ¶
type MockQuerier ¶
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface
func NewMockQuerier ¶
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance
func (*MockQuerier) Compatible ¶
func (m *MockQuerier) Compatible(arg0 *identity.Query) bool
Compatible mocks base method
func (*MockQuerier) Do ¶
func (m *MockQuerier) Do(arg0 context.Context, arg1 *core.Clientset, arg2 *identity.Query) (*identity.IdentityList, error)
Do mocks base method
func (*MockQuerier) EXPECT ¶
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockQuerierMockRecorder ¶
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier
func (*MockQuerierMockRecorder) Compatible ¶
func (mr *MockQuerierMockRecorder) Compatible(arg0 interface{}) *gomock.Call
Compatible indicates an expected call of Compatible
func (*MockQuerierMockRecorder) Do ¶
func (mr *MockQuerierMockRecorder) Do(arg0, arg1, arg2 interface{}) *gomock.Call
Do indicates an expected call of Do
func (*MockQuerierMockRecorder) String ¶
func (mr *MockQuerierMockRecorder) String() *gomock.Call
String indicates an expected call of String
type Registry ¶
type Registry struct { CoreGroup *MockQuerier CoreUser *MockQuerier RoleSubject *MockQuerier ClusterRoleSubject *MockQuerier ServiceAccountUser *MockQuerier ServiceAccountGroup *MockQuerier ConfigUser *MockQuerier }
func NewRegistry ¶
func NewRegistry(mockCtrl *gomock.Controller) *Registry
func (*Registry) ToReal ¶
func (r *Registry) ToReal(clientset *cage_k8s_core.Clientset) *cage_k8s_identity.Registry
Click to show internal directories.
Click to hide internal directories.