Documentation ¶
Overview ¶
Package fake is a generated GoMock package.
Index ¶
- type ContextHandler
- func (f *ContextHandler) GetClientSet() (kubernetes.Interface, error)
- func (f *ContextHandler) GetConfigFile() string
- func (f *ContextHandler) GetContextName() string
- func (f *ContextHandler) GetDynamicClient() (dynamic.Interface, error)
- func (f *ContextHandler) IsMinikube() (bool, error)
- func (f *ContextHandler) Kubectl(command string, args ...string) (string, error)
- func (f *ContextHandler) MockKubectl(command string, args []string, response string, responseStatus int)
- type MockWatchHandler
- func (m *MockWatchHandler) AddedEvent(obj runtime.Object) error
- func (m *MockWatchHandler) DeletedEvent(obj runtime.Object) error
- func (m *MockWatchHandler) EXPECT() *MockWatchHandlerMockRecorder
- func (m *MockWatchHandler) PostEvent() error
- func (m *MockWatchHandler) PreWatch(options v1.ListOptions) (watch.Interface, error)
- func (m *MockWatchHandler) UpdatedEvent(obj runtime.Object) error
- type MockWatchHandlerMockRecorder
- func (mr *MockWatchHandlerMockRecorder) AddedEvent(obj interface{}) *gomock.Call
- func (mr *MockWatchHandlerMockRecorder) DeletedEvent(obj interface{}) *gomock.Call
- func (mr *MockWatchHandlerMockRecorder) PostEvent() *gomock.Call
- func (mr *MockWatchHandlerMockRecorder) PreWatch(options interface{}) *gomock.Call
- func (mr *MockWatchHandlerMockRecorder) UpdatedEvent(obj interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextHandler ¶
type ContextHandler struct { ClientSet *testclient.Clientset DynamicClient *dyntestclient.FakeDynamicClient ConfigFile string ContextName string MiniKube bool // contains filtered or unexported fields }
ContextHandler is a simple context handler for unit tests.
func NewContextHandler ¶
func NewContextHandler(clientSet *testclient.Clientset, dynamicClient *dyntestclient.FakeDynamicClient) *ContextHandler
NewContextHandler initializes a new ContextHandler instance for unit tests.
func (*ContextHandler) GetClientSet ¶
func (f *ContextHandler) GetClientSet() (kubernetes.Interface, error)
func (*ContextHandler) GetConfigFile ¶
func (f *ContextHandler) GetConfigFile() string
func (*ContextHandler) GetContextName ¶
func (f *ContextHandler) GetContextName() string
func (*ContextHandler) GetDynamicClient ¶
func (f *ContextHandler) GetDynamicClient() (dynamic.Interface, error)
func (*ContextHandler) IsMinikube ¶
func (f *ContextHandler) IsMinikube() (bool, error)
func (*ContextHandler) Kubectl ¶
func (f *ContextHandler) Kubectl(command string, args ...string) (string, error)
func (*ContextHandler) MockKubectl ¶
func (f *ContextHandler) MockKubectl(command string, args []string, response string, responseStatus int)
type MockWatchHandler ¶
type MockWatchHandler struct {
// contains filtered or unexported fields
}
MockWatchHandler is a mock of WatchHandler interface.
func NewMockWatchHandler ¶
func NewMockWatchHandler(ctrl *gomock.Controller) *MockWatchHandler
NewMockWatchHandler creates a new mock instance.
func (*MockWatchHandler) AddedEvent ¶
func (m *MockWatchHandler) AddedEvent(obj runtime.Object) error
AddedEvent mocks base method.
func (*MockWatchHandler) DeletedEvent ¶
func (m *MockWatchHandler) DeletedEvent(obj runtime.Object) error
DeletedEvent mocks base method.
func (*MockWatchHandler) EXPECT ¶
func (m *MockWatchHandler) EXPECT() *MockWatchHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatchHandler) PostEvent ¶
func (m *MockWatchHandler) PostEvent() error
PostEvent mocks base method.
func (*MockWatchHandler) PreWatch ¶
func (m *MockWatchHandler) PreWatch(options v1.ListOptions) (watch.Interface, error)
PreWatch mocks base method.
func (*MockWatchHandler) UpdatedEvent ¶
func (m *MockWatchHandler) UpdatedEvent(obj runtime.Object) error
UpdatedEvent mocks base method.
type MockWatchHandlerMockRecorder ¶
type MockWatchHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockWatchHandlerMockRecorder is the mock recorder for MockWatchHandler.
func (*MockWatchHandlerMockRecorder) AddedEvent ¶
func (mr *MockWatchHandlerMockRecorder) AddedEvent(obj interface{}) *gomock.Call
AddedEvent indicates an expected call of AddedEvent.
func (*MockWatchHandlerMockRecorder) DeletedEvent ¶
func (mr *MockWatchHandlerMockRecorder) DeletedEvent(obj interface{}) *gomock.Call
DeletedEvent indicates an expected call of DeletedEvent.
func (*MockWatchHandlerMockRecorder) PostEvent ¶
func (mr *MockWatchHandlerMockRecorder) PostEvent() *gomock.Call
PostEvent indicates an expected call of PostEvent.
func (*MockWatchHandlerMockRecorder) PreWatch ¶
func (mr *MockWatchHandlerMockRecorder) PreWatch(options interface{}) *gomock.Call
PreWatch indicates an expected call of PreWatch.
func (*MockWatchHandlerMockRecorder) UpdatedEvent ¶
func (mr *MockWatchHandlerMockRecorder) UpdatedEvent(obj interface{}) *gomock.Call
UpdatedEvent indicates an expected call of UpdatedEvent.