Documentation ¶
Index ¶
- Constants
- func FlowpipeMetadataOutput(startedAt, finshedAt time.Time) map[string]interface{}
- type Container
- type Email
- type Exec
- type FileBasedQueryReader
- type Function
- type HTTPInput
- type HTTPRequest
- type Input
- type InputIntegration
- type InputIntegrationBase
- type InputIntegrationEmail
- type InputIntegrationEmailMessage
- type InputIntegrationMsTeams
- type InputIntegrationResponseOption
- type InputIntegrationSlack
- type InputStepMessageCreator
- func (icm *InputStepMessageCreator) EmailMessage(iim *InputIntegrationEmail, options []InputIntegrationResponseOption) (string, error)
- func (icm *InputStepMessageCreator) MsTeamsMessage(ip *InputIntegrationMsTeams, options []InputIntegrationResponseOption) (*messagecard.MessageCard, error)
- func (icm *InputStepMessageCreator) SlackMessage(ip *InputIntegrationSlack, options []InputIntegrationResponseOption) (slack.Blocks, error)
- type JSONPayload
- type Message
- type MessageCreator
- type MessageStepMessageCreator
- func (icm *MessageStepMessageCreator) EmailMessage(iim *InputIntegrationEmail, _ []InputIntegrationResponseOption) (string, error)
- func (icm *MessageStepMessageCreator) MsTeamsMessage(iit *InputIntegrationMsTeams, _ []InputIntegrationResponseOption) (*messagecard.MessageCard, error)
- func (icm *MessageStepMessageCreator) SlackMessage(ip *InputIntegrationSlack, options []InputIntegrationResponseOption) (slack.Blocks, error)
- type MySQLQueryReader
- type MySQLRowReader
- type PostgresQueryReader
- type Primitive
- type Query
- type QueryReader
- type QueryReaderImpl
- func (q *QueryReaderImpl) Close()
- func (q *QueryReaderImpl) GetConnectionString() string
- func (q *QueryReaderImpl) Initialize() error
- func (q *QueryReaderImpl) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
- func (q *QueryReaderImpl) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
- type RowReader
- type RowReaderImpl
- type RunPipeline
- type SQLiteQueryReader
- type Sleep
- type Transform
Constants ¶
View Source
const ( DriverPostgres = "postgres" DriverPostgresql = "postgresql" DriverMySQL = "mysql" DriverDuckDB = "duckdb" DriverSQLite3 = "sqlite3" DriverSQLite = "sqlite" )
Variables ¶
This section is empty.
Functions ¶
func FlowpipeMetadataOutput ¶ added in v0.3.0
Types ¶
type FileBasedQueryReader ¶ added in v0.2.1
type FileBasedQueryReader struct {
QueryReaderImpl
}
func (*FileBasedQueryReader) Initialize ¶ added in v0.2.1
func (s *FileBasedQueryReader) Initialize() error
type Input ¶
type Input struct { ExecutionID string PipelineExecutionID string StepExecutionID string PipelineName string StepName string }
func NewInputPrimitive ¶ added in v0.3.0
type InputIntegration ¶
type InputIntegrationBase ¶
type InputIntegrationBase struct { ExecutionID string PipelineExecutionID string StepExecutionID string }
func NewInputIntegrationBase ¶ added in v0.3.0
func NewInputIntegrationBase(input *Input) InputIntegrationBase
type InputIntegrationEmail ¶
type InputIntegrationEmail struct { InputIntegrationBase Host *string Port *int64 SecurePort *int64 Tls *string To []string Cc []string Bcc []string From string Subject string User *string Pass *string FormUrl string }
func NewInputIntegrationEmail ¶ added in v0.3.0
func NewInputIntegrationEmail(base InputIntegrationBase) InputIntegrationEmail
func (*InputIntegrationEmail) PostMessage ¶
func (ip *InputIntegrationEmail) PostMessage(ctx context.Context, mc MessageCreator, options []InputIntegrationResponseOption) (*modconfig.Output, error)
func (*InputIntegrationEmail) ValidateInputIntegrationEmail ¶
type InputIntegrationEmailMessage ¶ added in v0.3.0
type InputIntegrationMsTeams ¶ added in v0.4.0
type InputIntegrationMsTeams struct { InputIntegrationBase IntegrationName string WebhookUrl *string }
func NewInputIntegrationMsTeams ¶ added in v0.4.0
func NewInputIntegrationMsTeams(base InputIntegrationBase, name string) InputIntegrationMsTeams
func (*InputIntegrationMsTeams) PostMessage ¶ added in v0.4.0
func (ip *InputIntegrationMsTeams) PostMessage(_ context.Context, mc MessageCreator, options []InputIntegrationResponseOption) (*modconfig.Output, error)
type InputIntegrationResponseOption ¶ added in v0.3.0
type InputIntegrationSlack ¶
type InputIntegrationSlack struct { InputIntegrationBase Token *string SigningSecret *string WebhookUrl *string Channel *string }
func NewInputIntegrationSlack ¶ added in v0.3.0
func NewInputIntegrationSlack(base InputIntegrationBase) InputIntegrationSlack
func (*InputIntegrationSlack) PostMessage ¶
func (ip *InputIntegrationSlack) PostMessage(ctx context.Context, mc MessageCreator, options []InputIntegrationResponseOption) (*modconfig.Output, error)
type InputStepMessageCreator ¶ added in v0.3.0
func (*InputStepMessageCreator) EmailMessage ¶ added in v0.3.0
func (icm *InputStepMessageCreator) EmailMessage(iim *InputIntegrationEmail, options []InputIntegrationResponseOption) (string, error)
func (*InputStepMessageCreator) MsTeamsMessage ¶ added in v0.4.0
func (icm *InputStepMessageCreator) MsTeamsMessage(ip *InputIntegrationMsTeams, options []InputIntegrationResponseOption) (*messagecard.MessageCard, error)
func (*InputStepMessageCreator) SlackMessage ¶ added in v0.3.0
func (icm *InputStepMessageCreator) SlackMessage(ip *InputIntegrationSlack, options []InputIntegrationResponseOption) (slack.Blocks, error)
type JSONPayload ¶
type Message ¶ added in v0.3.0
type Message struct {
Input
}
func NewMessagePrimitive ¶ added in v0.3.0
type MessageCreator ¶ added in v0.3.0
type MessageCreator interface { EmailMessage(*InputIntegrationEmail, []InputIntegrationResponseOption) (string, error) SlackMessage(*InputIntegrationSlack, []InputIntegrationResponseOption) (slack.Blocks, error) MsTeamsMessage(*InputIntegrationMsTeams, []InputIntegrationResponseOption) (*messagecard.MessageCard, error) }
type MessageStepMessageCreator ¶ added in v0.3.0
type MessageStepMessageCreator struct {
Text string
}
func (*MessageStepMessageCreator) EmailMessage ¶ added in v0.3.0
func (icm *MessageStepMessageCreator) EmailMessage(iim *InputIntegrationEmail, _ []InputIntegrationResponseOption) (string, error)
func (*MessageStepMessageCreator) MsTeamsMessage ¶ added in v0.4.0
func (icm *MessageStepMessageCreator) MsTeamsMessage(iit *InputIntegrationMsTeams, _ []InputIntegrationResponseOption) (*messagecard.MessageCard, error)
func (*MessageStepMessageCreator) SlackMessage ¶ added in v0.3.0
func (icm *MessageStepMessageCreator) SlackMessage(ip *InputIntegrationSlack, options []InputIntegrationResponseOption) (slack.Blocks, error)
type MySQLQueryReader ¶ added in v0.2.1
type MySQLQueryReader struct {
QueryReaderImpl
}
func (*MySQLQueryReader) Query ¶ added in v0.2.1
func (m *MySQLQueryReader) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
func (*MySQLQueryReader) RowsToCty ¶ added in v0.2.1
func (m *MySQLQueryReader) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
type MySQLRowReader ¶ added in v0.2.1
type MySQLRowReader struct {
RowReaderImpl
}
func (*MySQLRowReader) Read ¶ added in v0.2.1
func (m *MySQLRowReader) Read(rows *sql.Rows, columnTypeMap map[string]*sql.ColumnType) ([]map[string]interface{}, error)
func (*MySQLRowReader) RowToCty ¶ added in v0.2.1
func (m *MySQLRowReader) RowToCty(row map[string]interface{}, columnTypes map[string]*sql.ColumnType) (cty.Value, error)
type PostgresQueryReader ¶ added in v0.2.1
type PostgresQueryReader struct {
QueryReaderImpl
}
func (*PostgresQueryReader) Initialize ¶ added in v0.2.1
func (p *PostgresQueryReader) Initialize() error
type Query ¶
type Query struct {
QueryReader QueryReader
}
func (*Query) RunWithMetadata ¶ added in v0.2.1
type QueryReader ¶ added in v0.2.1
type QueryReader interface { GetConnectionString() string Initialize() error Query(context.Context, string, ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error) Close() }
func NewQueryReader ¶ added in v0.2.1
func NewQueryReader(dbConnectionString string) (QueryReader, error)
type QueryReaderImpl ¶ added in v0.2.1
type QueryReaderImpl struct {
// contains filtered or unexported fields
}
func (*QueryReaderImpl) Close ¶ added in v0.2.1
func (q *QueryReaderImpl) Close()
func (*QueryReaderImpl) GetConnectionString ¶ added in v0.2.1
func (q *QueryReaderImpl) GetConnectionString() string
func (*QueryReaderImpl) Initialize ¶ added in v0.2.1
func (q *QueryReaderImpl) Initialize() error
func (*QueryReaderImpl) Query ¶ added in v0.2.1
func (q *QueryReaderImpl) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
func (*QueryReaderImpl) RowsToCty ¶ added in v0.2.1
func (q *QueryReaderImpl) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
type RowReaderImpl ¶ added in v0.2.1
type RowReaderImpl struct { }
func (*RowReaderImpl) Read ¶ added in v0.2.1
func (r *RowReaderImpl) Read(rows *sql.Rows, columnTypeMap map[string]*sql.ColumnType) ([]map[string]interface{}, error)
func (*RowReaderImpl) RowToCty ¶ added in v0.2.1
func (r *RowReaderImpl) RowToCty(row map[string]interface{}, columnTypes map[string]*sql.ColumnType) (cty.Value, error)
Attempt to have a generic function to convert a row to cty. It may not work for all the database that Flowpipe will support, the types are structured so it can be extended to various different DB Row Readers
type RunPipeline ¶
type RunPipeline struct{}
func (*RunPipeline) ValidateInput ¶
type SQLiteQueryReader ¶ added in v0.2.1
type SQLiteQueryReader struct {
QueryReaderImpl
}
func (*SQLiteQueryReader) Initialize ¶ added in v0.2.1
func (s *SQLiteQueryReader) Initialize() error
Click to show internal directories.
Click to hide internal directories.