Documentation ¶
Index ¶
- Constants
- Variables
- type DestinationConfigureRequest
- type DestinationConfigureResponse
- type DestinationLifecycleOnCreatedRequest
- type DestinationLifecycleOnCreatedResponse
- type DestinationLifecycleOnDeletedRequest
- type DestinationLifecycleOnDeletedResponse
- type DestinationLifecycleOnUpdatedRequest
- type DestinationLifecycleOnUpdatedResponse
- type DestinationOpenRequest
- type DestinationOpenResponse
- type DestinationPlugin
- type DestinationRunRequest
- type DestinationRunResponse
- type DestinationRunResponseAck
- type DestinationRunStream
- type DestinationRunStreamClient
- type DestinationRunStreamServer
- type DestinationStopRequest
- type DestinationStopResponse
- type DestinationTeardownRequest
- type DestinationTeardownResponse
- type PluginConfig
- type SourceConfigureRequest
- type SourceConfigureResponse
- type SourceLifecycleOnCreatedRequest
- type SourceLifecycleOnCreatedResponse
- type SourceLifecycleOnDeletedRequest
- type SourceLifecycleOnDeletedResponse
- type SourceLifecycleOnUpdatedRequest
- type SourceLifecycleOnUpdatedResponse
- type SourceOpenRequest
- type SourceOpenResponse
- type SourcePlugin
- type SourceRunRequest
- type SourceRunResponse
- type SourceRunStream
- type SourceRunStreamClient
- type SourceRunStreamServer
- type SourceStopRequest
- type SourceStopResponse
- type SourceTeardownRequest
- type SourceTeardownResponse
- type Specification
- type SpecifierPlugin
- type SpecifierSpecifyRequest
- type SpecifierSpecifyResponse
Constants ¶
const ( EnvConduitConnectorID = "CONDUIT_CONNECTOR_ID" EnvConduitConnectorLogLevel = "CONDUIT_CONNECTOR_LOG_LEVEL" )
Variables ¶
var ErrUnimplemented = errors.New("method not implemented")
var HandshakeConfig = plugin.HandshakeConfig{
MagicCookieKey: "CONDUIT_PLUGIN_MAGIC_COOKIE",
MagicCookieValue: "204e8e812c3a1bb73b838928c575b42a105dd2e9aa449be481bc4590486df53f",
}
Functions ¶
This section is empty.
Types ¶
type DestinationConfigureRequest ¶
func (DestinationConfigureRequest) Clone ¶
func (r DestinationConfigureRequest) Clone() DestinationConfigureRequest
type DestinationConfigureResponse ¶
type DestinationConfigureResponse struct{}
func (DestinationConfigureResponse) Clone ¶
func (r DestinationConfigureResponse) Clone() DestinationConfigureResponse
type DestinationLifecycleOnCreatedRequest ¶
func (DestinationLifecycleOnCreatedRequest) Clone ¶
func (r DestinationLifecycleOnCreatedRequest) Clone() DestinationLifecycleOnCreatedRequest
type DestinationLifecycleOnCreatedResponse ¶
type DestinationLifecycleOnCreatedResponse struct{}
type DestinationLifecycleOnDeletedRequest ¶
func (DestinationLifecycleOnDeletedRequest) Clone ¶
func (r DestinationLifecycleOnDeletedRequest) Clone() DestinationLifecycleOnDeletedRequest
type DestinationLifecycleOnDeletedResponse ¶
type DestinationLifecycleOnDeletedResponse struct{}
type DestinationLifecycleOnUpdatedRequest ¶
type DestinationLifecycleOnUpdatedRequest struct { ConfigBefore config.Config ConfigAfter config.Config }
func (DestinationLifecycleOnUpdatedRequest) Clone ¶
func (r DestinationLifecycleOnUpdatedRequest) Clone() DestinationLifecycleOnUpdatedRequest
type DestinationLifecycleOnUpdatedResponse ¶
type DestinationLifecycleOnUpdatedResponse struct{}
type DestinationOpenRequest ¶
type DestinationOpenRequest struct{}
func (DestinationOpenRequest) Clone ¶
func (r DestinationOpenRequest) Clone() DestinationOpenRequest
type DestinationOpenResponse ¶
type DestinationOpenResponse struct{}
func (DestinationOpenResponse) Clone ¶
func (r DestinationOpenResponse) Clone() DestinationOpenResponse
type DestinationPlugin ¶
type DestinationPlugin interface { Configure(context.Context, DestinationConfigureRequest) (DestinationConfigureResponse, error) Open(context.Context, DestinationOpenRequest) (DestinationOpenResponse, error) Run(context.Context, DestinationRunStream) error Stop(context.Context, DestinationStopRequest) (DestinationStopResponse, error) Teardown(context.Context, DestinationTeardownRequest) (DestinationTeardownResponse, error) LifecycleOnCreated(context.Context, DestinationLifecycleOnCreatedRequest) (DestinationLifecycleOnCreatedResponse, error) LifecycleOnUpdated(context.Context, DestinationLifecycleOnUpdatedRequest) (DestinationLifecycleOnUpdatedResponse, error) LifecycleOnDeleted(context.Context, DestinationLifecycleOnDeletedRequest) (DestinationLifecycleOnDeletedResponse, error) }
type DestinationRunRequest ¶
func (DestinationRunRequest) Clone ¶
func (r DestinationRunRequest) Clone() DestinationRunRequest
type DestinationRunResponse ¶
type DestinationRunResponse struct {
Acks []DestinationRunResponseAck
}
func (DestinationRunResponse) Clone ¶
func (r DestinationRunResponse) Clone() DestinationRunResponse
type DestinationRunResponseAck ¶
func (DestinationRunResponseAck) Clone ¶
func (r DestinationRunResponseAck) Clone() DestinationRunResponseAck
type DestinationRunStream ¶
type DestinationRunStream interface { // Client is only allowed to be used by the host (Conduit). Client() DestinationRunStreamClient // Server is only allowed to be used by the plugin (connector). Server() DestinationRunStreamServer }
DestinationRunStream is the bidirectional stream interface for DestinationPlugin.Run. It combines the client and server interfaces into a single interface.
type DestinationRunStreamClient ¶
type DestinationRunStreamClient interface { Send(DestinationRunRequest) error Recv() (DestinationRunResponse, error) }
DestinationRunStreamClient is the client-side interface for a bidirectional stream of DestinationRunRequest and DestinationRunResponse messages.
type DestinationRunStreamServer ¶
type DestinationRunStreamServer interface { Send(DestinationRunResponse) error Recv() (DestinationRunRequest, error) }
DestinationRunStreamServer is the server-side interface for a bidirectional stream of DestinationRunRequest and DestinationRunResponse messages.
type DestinationStopRequest ¶
func (DestinationStopRequest) Clone ¶
func (r DestinationStopRequest) Clone() DestinationStopRequest
type DestinationStopResponse ¶
type DestinationStopResponse struct{}
func (DestinationStopResponse) Clone ¶
func (r DestinationStopResponse) Clone() DestinationStopResponse
type DestinationTeardownRequest ¶
type DestinationTeardownRequest struct{}
func (DestinationTeardownRequest) Clone ¶
func (r DestinationTeardownRequest) Clone() DestinationTeardownRequest
type DestinationTeardownResponse ¶
type DestinationTeardownResponse struct{}
func (DestinationTeardownResponse) Clone ¶
func (r DestinationTeardownResponse) Clone() DestinationTeardownResponse
type PluginConfig ¶
type SourceConfigureRequest ¶
func (SourceConfigureRequest) Clone ¶
func (r SourceConfigureRequest) Clone() SourceConfigureRequest
type SourceConfigureResponse ¶
type SourceConfigureResponse struct{}
func (SourceConfigureResponse) Clone ¶
func (r SourceConfigureResponse) Clone() SourceConfigureResponse
type SourceLifecycleOnCreatedRequest ¶
func (SourceLifecycleOnCreatedRequest) Clone ¶
func (r SourceLifecycleOnCreatedRequest) Clone() SourceLifecycleOnCreatedRequest
type SourceLifecycleOnCreatedResponse ¶
type SourceLifecycleOnCreatedResponse struct{}
func (SourceLifecycleOnCreatedResponse) Clone ¶
func (r SourceLifecycleOnCreatedResponse) Clone() SourceLifecycleOnCreatedResponse
type SourceLifecycleOnDeletedRequest ¶
func (SourceLifecycleOnDeletedRequest) Clone ¶
func (r SourceLifecycleOnDeletedRequest) Clone() SourceLifecycleOnDeletedRequest
type SourceLifecycleOnDeletedResponse ¶
type SourceLifecycleOnDeletedResponse struct{}
func (SourceLifecycleOnDeletedResponse) Clone ¶
func (r SourceLifecycleOnDeletedResponse) Clone() SourceLifecycleOnDeletedResponse
type SourceLifecycleOnUpdatedRequest ¶
type SourceLifecycleOnUpdatedRequest struct { ConfigBefore config.Config ConfigAfter config.Config }
func (SourceLifecycleOnUpdatedRequest) Clone ¶
func (r SourceLifecycleOnUpdatedRequest) Clone() SourceLifecycleOnUpdatedRequest
type SourceLifecycleOnUpdatedResponse ¶
type SourceLifecycleOnUpdatedResponse struct{}
func (SourceLifecycleOnUpdatedResponse) Clone ¶
func (r SourceLifecycleOnUpdatedResponse) Clone() SourceLifecycleOnUpdatedResponse
type SourceOpenRequest ¶
func (SourceOpenRequest) Clone ¶
func (r SourceOpenRequest) Clone() SourceOpenRequest
type SourceOpenResponse ¶
type SourceOpenResponse struct{}
func (SourceOpenResponse) Clone ¶
func (r SourceOpenResponse) Clone() SourceOpenResponse
type SourcePlugin ¶
type SourcePlugin interface { Configure(context.Context, SourceConfigureRequest) (SourceConfigureResponse, error) Open(context.Context, SourceOpenRequest) (SourceOpenResponse, error) Run(context.Context, SourceRunStream) error Stop(context.Context, SourceStopRequest) (SourceStopResponse, error) Teardown(context.Context, SourceTeardownRequest) (SourceTeardownResponse, error) LifecycleOnCreated(context.Context, SourceLifecycleOnCreatedRequest) (SourceLifecycleOnCreatedResponse, error) LifecycleOnUpdated(context.Context, SourceLifecycleOnUpdatedRequest) (SourceLifecycleOnUpdatedResponse, error) LifecycleOnDeleted(context.Context, SourceLifecycleOnDeletedRequest) (SourceLifecycleOnDeletedResponse, error) }
type SourceRunRequest ¶
func (SourceRunRequest) Clone ¶
func (r SourceRunRequest) Clone() SourceRunRequest
type SourceRunResponse ¶
func (SourceRunResponse) Clone ¶
func (r SourceRunResponse) Clone() SourceRunResponse
type SourceRunStream ¶
type SourceRunStream interface { // Client is only allowed to be used by the host (Conduit). Client() SourceRunStreamClient // Server is only allowed to be used by the plugin (connector). Server() SourceRunStreamServer }
SourceRunStream is the bidirectional stream interface for SourcePlugin.Run. It combines the client and server interfaces into a single interface.
type SourceRunStreamClient ¶
type SourceRunStreamClient interface { Send(SourceRunRequest) error Recv() (SourceRunResponse, error) }
SourceRunStreamClient is the client-side interface for a bidirectional stream of SourceRunRequest and SourceRunResponse messages.
type SourceRunStreamServer ¶
type SourceRunStreamServer interface { Send(SourceRunResponse) error Recv() (SourceRunRequest, error) }
SourceRunStreamServer is the server-side interface for a bidirectional stream of SourceRunRequest and SourceRunResponse messages.
type SourceStopRequest ¶
type SourceStopRequest struct{}
func (SourceStopRequest) Clone ¶
func (r SourceStopRequest) Clone() SourceStopRequest
type SourceStopResponse ¶
func (SourceStopResponse) Clone ¶
func (r SourceStopResponse) Clone() SourceStopResponse
type SourceTeardownRequest ¶
type SourceTeardownRequest struct{}
func (SourceTeardownRequest) Clone ¶
func (r SourceTeardownRequest) Clone() SourceTeardownRequest
type SourceTeardownResponse ¶
type SourceTeardownResponse struct{}
func (SourceTeardownResponse) Clone ¶
func (r SourceTeardownResponse) Clone() SourceTeardownResponse
type Specification ¶
type Specification struct { // Name is the name of the plugin. Name string // Summary is a brief description of the plugin and what it does. Summary string // Description is a more long form area appropriate for README-like text // that the author can provide for documentation about the specified // Parameters. Description string // Version string. Should be a semver prepended with `v`, e.g. `v1.54.3`. Version string // Author declares the entity that created or maintains this plugin. Author string // SourceParams and DestinationParams are maps of named Parameters that // describe how to configure the plugins Destination or Source. SourceParams config.Parameters DestinationParams config.Parameters }
Specification is returned by a plugin when Specify is called. It contains information about the configuration parameters for plugins and allows them to describe their parameters.
type SpecifierPlugin ¶
type SpecifierPlugin interface {
Specify(context.Context, SpecifierSpecifyRequest) (SpecifierSpecifyResponse, error)
}
type SpecifierSpecifyRequest ¶
type SpecifierSpecifyRequest struct{}
type SpecifierSpecifyResponse ¶
type SpecifierSpecifyResponse struct {
Specification Specification
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Deprecated: v1 is deprecated.
|
Deprecated: v1 is deprecated. |
client
Deprecated: v1 is deprecated.
|
Deprecated: v1 is deprecated. |
server
Deprecated: v1 is deprecated.
|
Deprecated: v1 is deprecated. |