Documentation ¶
Overview ¶
Package fake is a generated GoMock package.
Index ¶
- type MockPortForwarder
- func (m *MockPortForwarder) Create(ctx context.Context, alerter action.Alerter, gvk schema.GroupVersionKind, ...) (portforward.CreateResponse, error)
- func (m *MockPortForwarder) EXPECT() *MockPortForwarderMockRecorder
- func (m *MockPortForwarder) FindPod(namespace string, gvk schema.GroupVersionKind, name string) ([]portforward.State, error)
- func (m *MockPortForwarder) FindTarget(namespace string, gvk schema.GroupVersionKind, name string) ([]portforward.State, error)
- func (m *MockPortForwarder) Get(id string) (portforward.State, bool)
- func (m *MockPortForwarder) List(ctx context.Context) []portforward.State
- func (m *MockPortForwarder) Stop()
- func (m *MockPortForwarder) StopForwarder(id string)
- type MockPortForwarderMockRecorder
- func (mr *MockPortForwarderMockRecorder) Create(ctx, alerter, gvk, name, namespace, remotePort interface{}) *gomock.Call
- func (mr *MockPortForwarderMockRecorder) FindPod(namespace, gvk, name interface{}) *gomock.Call
- func (mr *MockPortForwarderMockRecorder) FindTarget(namespace, gvk, name interface{}) *gomock.Call
- func (mr *MockPortForwarderMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockPortForwarderMockRecorder) List(ctx interface{}) *gomock.Call
- func (mr *MockPortForwarderMockRecorder) Stop() *gomock.Call
- func (mr *MockPortForwarderMockRecorder) StopForwarder(id interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPortForwarder ¶
type MockPortForwarder struct {
// contains filtered or unexported fields
}
MockPortForwarder is a mock of PortForwarder interface.
func NewMockPortForwarder ¶
func NewMockPortForwarder(ctrl *gomock.Controller) *MockPortForwarder
NewMockPortForwarder creates a new mock instance.
func (*MockPortForwarder) Create ¶
func (m *MockPortForwarder) Create(ctx context.Context, alerter action.Alerter, gvk schema.GroupVersionKind, name, namespace string, remotePort uint16) (portforward.CreateResponse, error)
Create mocks base method.
func (*MockPortForwarder) EXPECT ¶
func (m *MockPortForwarder) EXPECT() *MockPortForwarderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortForwarder) FindPod ¶ added in v0.14.0
func (m *MockPortForwarder) FindPod(namespace string, gvk schema.GroupVersionKind, name string) ([]portforward.State, error)
FindPod mocks base method.
func (*MockPortForwarder) FindTarget ¶ added in v0.14.0
func (m *MockPortForwarder) FindTarget(namespace string, gvk schema.GroupVersionKind, name string) ([]portforward.State, error)
FindTarget mocks base method.
func (*MockPortForwarder) Get ¶
func (m *MockPortForwarder) Get(id string) (portforward.State, bool)
Get mocks base method.
func (*MockPortForwarder) List ¶
func (m *MockPortForwarder) List(ctx context.Context) []portforward.State
List mocks base method.
func (*MockPortForwarder) StopForwarder ¶
func (m *MockPortForwarder) StopForwarder(id string)
StopForwarder mocks base method.
type MockPortForwarderMockRecorder ¶
type MockPortForwarderMockRecorder struct {
// contains filtered or unexported fields
}
MockPortForwarderMockRecorder is the mock recorder for MockPortForwarder.
func (*MockPortForwarderMockRecorder) Create ¶
func (mr *MockPortForwarderMockRecorder) Create(ctx, alerter, gvk, name, namespace, remotePort interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPortForwarderMockRecorder) FindPod ¶ added in v0.14.0
func (mr *MockPortForwarderMockRecorder) FindPod(namespace, gvk, name interface{}) *gomock.Call
FindPod indicates an expected call of FindPod.
func (*MockPortForwarderMockRecorder) FindTarget ¶ added in v0.14.0
func (mr *MockPortForwarderMockRecorder) FindTarget(namespace, gvk, name interface{}) *gomock.Call
FindTarget indicates an expected call of FindTarget.
func (*MockPortForwarderMockRecorder) Get ¶
func (mr *MockPortForwarderMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPortForwarderMockRecorder) List ¶
func (mr *MockPortForwarderMockRecorder) List(ctx interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockPortForwarderMockRecorder) Stop ¶
func (mr *MockPortForwarderMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockPortForwarderMockRecorder) StopForwarder ¶
func (mr *MockPortForwarderMockRecorder) StopForwarder(id interface{}) *gomock.Call
StopForwarder indicates an expected call of StopForwarder.