frpc

package
v0.0.0-...-2f66ebe Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeHostToKubeTunnel

func ChangeHostToKubeTunnel(hostFile *fwdport.HostFileWithLock, kubeTunnelServerDns string)

func Execute

func Execute(common models.Common, servicePair []ServicePair) (cancelChan *notify.CancellationChannel, err error)

Execute - This code was copied from frpc and modified a bit to support kubetunnel requirements

Types

type Manager

type Manager struct {
	Common      models.Common
	ServicePair []ServicePair
}

func NewManager

func NewManager(common models.Common, servicePair []ServicePair, hostFile *fwdport.HostFileWithLock) *Manager

func (*Manager) RunFRPc

func (m *Manager) RunFRPc()

func (*Manager) WaitForLocalPortToBecomeAvailable

func (m *Manager) WaitForLocalPortToBecomeAvailable()

func (*Manager) WaitForLocalPortToBecomeUnavailableAndCancel

func (m *Manager) WaitForLocalPortToBecomeUnavailableAndCancel(channel *notify.CancellationChannel)

type ServicePair

type ServicePair struct {
	Name    string
	Service models.Service
}

Jump to

Keyboard shortcuts

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