connect

package
v0.0.13-rc11-z5nctl2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 16 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

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

MockShadowInterface is a mock of ShadowInterface interface

func NewMockShadowInterface

func NewMockShadowInterface(ctrl *gomock.Controller) *MockShadowInterface

NewMockShadowInterface creates a new mock instance

func (*MockShadowInterface) EXPECT

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

func (*MockShadowInterface) Inbound

func (m *MockShadowInterface) Inbound(exposePort, podName, remoteIP string, credential *util.SSHCredential) error

Inbound mocks base method

func (*MockShadowInterface) Outbound

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

Outbound mocks base method

type MockShadowInterfaceMockRecorder

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

MockShadowInterfaceMockRecorder is the mock recorder for MockShadowInterface

func (*MockShadowInterfaceMockRecorder) Inbound

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

Inbound indicates an expected call of Inbound

func (*MockShadowInterfaceMockRecorder) Outbound

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

Outbound indicates an expected call of Outbound

type Shadow

type Shadow struct {
	Options *options.DaemonOptions
}

Shadow shadow

func Create

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

Create create shadow

func (*Shadow) Inbound

func (s *Shadow) Inbound(exposePorts, podName, remoteIP string, credential *util.SSHCredential) (err error)

Inbound mapping local port from cluster

func (*Shadow) Outbound

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

Outbound start vpn connection

type ShadowInterface

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

ShadowInterface shadow interface

Jump to

Keyboard shortcuts

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