mocks

package
v0.5.41 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	mock.Mock
}

Connector is an autogenerated mock type for the Connector type

func NewConnector

func NewConnector(t mockConstructorTestingTNewConnector) *Connector

NewConnector creates a new instance of Connector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Connector) ExposeService

func (_m *Connector) ExposeService(name string, port int, remoteAddr string, destAddr string, direction string) (string, error)

ExposeService provides a mock function with given fields: name, port, remoteAddr, destAddr, direction

func (*Connector) GenerateLeafCert

func (_m *Connector) GenerateLeafCert(privateKey string, rootCA string, hosts []string, ips []string, dir string) (*types.CertBundle, error)

GenerateLeafCert provides a mock function with given fields: privateKey, rootCA, hosts, ips, dir

func (*Connector) GenerateLocalCertBundle

func (_m *Connector) GenerateLocalCertBundle(out string) (*types.CertBundle, error)

GenerateLocalCertBundle provides a mock function with given fields: out

func (*Connector) GetLocalCertBundle

func (_m *Connector) GetLocalCertBundle(dir string) (*types.CertBundle, error)

GetLocalCertBundle provides a mock function with given fields: dir

func (*Connector) IsRunning

func (_m *Connector) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*Connector) ListServices

func (_m *Connector) ListServices() ([]*shipyard.Service, error)

ListServices provides a mock function with given fields:

func (*Connector) RemoveService

func (_m *Connector) RemoveService(id string) error

RemoveService provides a mock function with given fields: id

func (*Connector) Start

func (_m *Connector) Start(_a0 *types.CertBundle) error

Start provides a mock function with given fields: _a0

func (*Connector) Stop

func (_m *Connector) Stop() error

Stop provides a mock function with given fields:

type MockConnectorServer

type MockConnectorServer struct {
	mock.Mock
	// contains filtered or unexported fields
}

func NewMockConnectorServer

func NewMockConnectorServer() *MockConnectorServer

func (*MockConnectorServer) DestroyService

func (*MockConnectorServer) ExposeService

func (*MockConnectorServer) ListServices

func (*MockConnectorServer) OpenStream

func (*MockConnectorServer) Start

func (m *MockConnectorServer) Start(addr, rootCertPath, rootKeyPath, leafCertPath, leafKeyPath string) (string, error)

Start the server returning the location

func (*MockConnectorServer) Stop

func (m *MockConnectorServer) Stop()

Jump to

Keyboard shortcuts

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