Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTestClient ¶
func MakeTestClient(_ context.Context, config common.TestClientConfig) (*opensearch.Client, error)
MakeTestClient returns Redis client connection according to the provided parameters.
Types ¶
type Engine ¶
type Engine struct { // EngineConfig is the common database engine configuration. common.EngineConfig // CredentialsGetter is used to obtain STS credentials. CredentialsGetter libaws.CredentialsGetter // contains filtered or unexported fields }
Engine handles connections from OpenSearch clients coming from Teleport proxy over reverse tunnel.
func (*Engine) HandleConnection ¶
HandleConnection authorizes the incoming client connection, connects to the target OpenSearch server and starts proxying requests between client/server.
func (*Engine) InitializeConnection ¶
InitializeConnection initializes the engine with the client connection.
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
func NewTestServer ¶
func NewTestServer(config common.TestServerConfig, opts ...TestServerOption) (svr *TestServer, err error)
NewTestServer returns a new instance of a test OpenSearch server.
func (*TestServer) Close ¶
func (s *TestServer) Close() error
Close starts serving client connections.
func (*TestServer) Port ¶
func (s *TestServer) Port() string
func (*TestServer) Serve ¶
func (s *TestServer) Serve() error
Serve starts serving client connections.
type TestServerOption ¶
type TestServerOption func(*TestServer)
TestServerOption allows setting test server options.
Click to show internal directories.
Click to hide internal directories.