connect

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package connect is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockShadowInterface added in v0.1.0

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

MockShadowInterface is a mock of ShadowInterface interface.

func NewMockShadowInterface added in v0.1.0

func NewMockShadowInterface(ctrl *gomock.Controller) *MockShadowInterface

NewMockShadowInterface creates a new mock instance.

func (*MockShadowInterface) EXPECT added in v0.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockShadowInterface) Inbound added in v0.1.0

func (m *MockShadowInterface) Inbound(exposePort, podName string) (int, error)

Inbound mocks base method.

func (*MockShadowInterface) Outbound added in v0.1.0

func (m *MockShadowInterface) Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, exec exec.CliInterface) error

Outbound mocks base method.

type MockShadowInterfaceMockRecorder added in v0.1.0

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

MockShadowInterfaceMockRecorder is the mock recorder for MockShadowInterface.

func (*MockShadowInterfaceMockRecorder) Inbound added in v0.1.0

func (mr *MockShadowInterfaceMockRecorder) Inbound(exposePort, podName interface{}) *gomock.Call

Inbound indicates an expected call of Inbound.

func (*MockShadowInterfaceMockRecorder) Outbound added in v0.1.0

func (mr *MockShadowInterfaceMockRecorder) Outbound(name, podIP, credential, cidrs, exec interface{}) *gomock.Call

Outbound indicates an expected call of Outbound.

type Shadow added in v0.0.12

type Shadow struct {
	Options *options.DaemonOptions
}

Shadow shadow

func Create added in v0.0.12

func Create(options *options.DaemonOptions) (shadow Shadow)

Create create shadow

func (*Shadow) ExposeLocalPort added in v0.2.3

func (s *Shadow) ExposeLocalPort(wg *sync.WaitGroup, ssh sshchannel.Channel, localPort, remotePort string, localSSHPort int)

func (*Shadow) Inbound added in v0.0.12

func (s *Shadow) Inbound(exposePorts, podName string) (int, error)

Inbound mapping local port from cluster

func (*Shadow) Outbound added in v0.0.12

func (s *Shadow) Outbound(podName, podIP string, credential *util.SSHCredential, cidrs []string, cli exec.CliInterface) (err error)

Outbound start vpn connection

type ShadowInterface added in v0.0.12

type ShadowInterface interface {
	Inbound(exposePort, podName string) (int, error)
	Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, exec exec.CliInterface) error
}

ShadowInterface shadow interface

Jump to

Keyboard shortcuts

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