Documentation ¶
Index ¶
- type Connector
- func (_m *Connector) ExposeService(name string, port int, remoteAddr string, destAddr string, direction string) (string, error)
- func (_m *Connector) GenerateLeafCert(privateKey string, rootCA string, hosts []string, ips []string, dir string) (*types.CertBundle, error)
- func (_m *Connector) GenerateLocalCertBundle(out string) (*types.CertBundle, error)
- func (_m *Connector) GetLocalCertBundle(dir string) (*types.CertBundle, error)
- func (_m *Connector) IsRunning() bool
- func (_m *Connector) ListServices() ([]*shipyard.Service, error)
- func (_m *Connector) RemoveService(id string) error
- func (_m *Connector) Start(_a0 *types.CertBundle) error
- func (_m *Connector) Stop() error
- type MockConnectorServer
- func (m *MockConnectorServer) DestroyService(ctx context.Context, r *shipyard.DestroyRequest) (*shipyard.NullMessage, error)
- func (m *MockConnectorServer) ExposeService(ctx context.Context, r *shipyard.ExposeRequest) (*shipyard.ExposeResponse, error)
- func (m *MockConnectorServer) ListServices(ctx context.Context, msg *shipyard.NullMessage) (*shipyard.ListResponse, error)
- func (m *MockConnectorServer) OpenStream(svr shipyard.RemoteConnection_OpenStreamServer) error
- func (m *MockConnectorServer) Start(addr, rootCertPath, rootKeyPath, leafCertPath, leafKeyPath string) (string, error)
- func (m *MockConnectorServer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
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) ListServices ¶
ListServices provides a mock function with given fields:
func (*Connector) RemoveService ¶
RemoveService provides a mock function with given fields: id
type MockConnectorServer ¶
func NewMockConnectorServer ¶
func NewMockConnectorServer() *MockConnectorServer
func (*MockConnectorServer) DestroyService ¶
func (m *MockConnectorServer) DestroyService(ctx context.Context, r *shipyard.DestroyRequest) (*shipyard.NullMessage, error)
func (*MockConnectorServer) ExposeService ¶
func (m *MockConnectorServer) ExposeService(ctx context.Context, r *shipyard.ExposeRequest) (*shipyard.ExposeResponse, error)
func (*MockConnectorServer) ListServices ¶
func (m *MockConnectorServer) ListServices(ctx context.Context, msg *shipyard.NullMessage) (*shipyard.ListResponse, error)
func (*MockConnectorServer) OpenStream ¶
func (m *MockConnectorServer) OpenStream(svr shipyard.RemoteConnection_OpenStreamServer) error
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()