portforward

package
v0.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 17 Imported by: 0

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 Cli

type Cli struct{}

Cli ...

func (*Cli) ForwardPodPortToLocal

func (s *Cli) ForwardPodPortToLocal(request Request) (chan struct{}, context.Context, error)

ForwardPodPortToLocal ...

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

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 ...

Jump to

Keyboard shortcuts

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