fwdport

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostFileWithLock added in v1.13.1

type HostFileWithLock struct {
	Hosts *txeh.Hosts
	sync.Mutex
}

type HostsParams added in v1.13.1

type HostsParams struct {
	// contains filtered or unexported fields
}

type OperatorInterface added in v1.13.1

type OperatorInterface interface {
	ForwardService(svcName string, svcNamespace string)
	UnForwardService(svcName string, svcNamespace string)
}

type PortForwardOpts

type PortForwardOpts struct {
	Out               *fwdpub.Publisher
	Config            *restclient.Config
	ClientSet         *kubernetes.Clientset
	RESTClient        *restclient.RESTClient
	ServiceOperator   OperatorInterface
	Context           string
	Namespace         string
	Service           string
	NativeServiceName string
	PodName           string
	PodPort           string
	LocalIp           net.IP
	LocalPort         string
	Hostfile          *HostFileWithLock
	ExitOnFail        bool
	ShortName         bool
	Remote            bool
	Domain            string
	HostsParams       *HostsParams
	ManualStopChan    chan struct{}
}

func (*PortForwardOpts) AddHosts added in v1.13.1

func (pfo *PortForwardOpts) AddHosts()

this method to add hosts obj in /etc/hosts

func (*PortForwardOpts) BuildTheHostsParams added in v1.13.1

func (pfo *PortForwardOpts) BuildTheHostsParams()

this method to build the HostsParams

func (*PortForwardOpts) ListenUntilPodDeleted added in v1.13.1

func (pfo *PortForwardOpts) ListenUntilPodDeleted(signalsChan chan struct{}, pod *v1.Pod)

listen for pod is deleted

func (*PortForwardOpts) PortForward added in v1.13.1

func (pfo *PortForwardOpts) PortForward() error

func (*PortForwardOpts) Stop added in v1.13.1

func (pfo *PortForwardOpts) Stop()

this method to stop PortForward for the pfo

func (*PortForwardOpts) WaitForPodRunning added in v1.13.1

func (pfo *PortForwardOpts) WaitForPodRunning(signalsChan chan struct{}) (*v1.Pod, error)

Waiting for the pod running

Jump to

Keyboard shortcuts

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