Documentation
¶
Index ¶
- type HostFileWithLock
- type HostsParams
- type OperatorInterface
- type PortForwardOpts
- func (pfo *PortForwardOpts) AddHosts()
- func (pfo *PortForwardOpts) BuildTheHostsParams()
- func (pfo *PortForwardOpts) ListenUntilPodDeleted(signalsChan chan struct{}, pod *v1.Pod)
- func (pfo *PortForwardOpts) PortForward() error
- func (pfo *PortForwardOpts) Stop()
- func (pfo *PortForwardOpts) WaitForPodRunning(signalsChan chan struct{}) (*v1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostFileWithLock ¶ added in v1.13.1
type HostsParams ¶ added in v1.13.1
type HostsParams struct {
// contains filtered or unexported fields
}
type OperatorInterface ¶ added in v1.13.1
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
Click to show internal directories.
Click to hide internal directories.