Documentation ¶
Overview ¶
Package portforward is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliInterface ¶
type CliInterface interface {
ForwardPodPortToLocal(request Request) (chan struct{}, context.Context, error)
}
CliInterface ...
type MockCliInterface ¶
type MockCliInterface struct {
// contains filtered or unexported fields
}
MockCliInterface is a mock of CliInterface interface.
func NewMockCliInterface ¶
func NewMockCliInterface(ctrl *gomock.Controller) *MockCliInterface
NewMockCliInterface creates a new mock instance.
func (*MockCliInterface) EXPECT ¶
func (m *MockCliInterface) EXPECT() *MockCliInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCliInterface) ForwardPodPortToLocal ¶
func (m *MockCliInterface) ForwardPodPortToLocal(request Request) (chan struct{}, context.Context, error)
ForwardPodPortToLocal mocks base method.
type MockCliInterfaceMockRecorder ¶
type MockCliInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCliInterfaceMockRecorder is the mock recorder for MockCliInterface.
func (*MockCliInterfaceMockRecorder) ForwardPodPortToLocal ¶
func (mr *MockCliInterfaceMockRecorder) ForwardPodPortToLocal(request interface{}) *gomock.Call
ForwardPodPortToLocal indicates an expected call of ForwardPodPortToLocal.
type Request ¶
type Request struct { // RestConfig is the kubernetes config RestConfig *rest.Config // PodName pod name PodName string // Namespace target namespace Namespace string // LocalPort is the local port that will be selected to expose the PodPort LocalPort int // PodPort is the target port for the pod PodPort int // StopCh is the channel used to manage the port forward lifecycle StopCh chan struct{} // ReadyCh communicates when the tunnel is ready to receive traffic ReadyCh chan struct{} // Timeout connect timeout Timeout int }
Request ...
Click to show internal directories.
Click to hide internal directories.