mock

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 10 Imported by: 0

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

Do mocks base method

func (*MockQuerier) EXPECT

func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockQuerier) String

func (m *MockQuerier) String() string

String mocks base method

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL