Documentation ¶
Index ¶
- Constants
- func CheckFlowDataIncoming(secretColumns map[string]string, secretValue string, dbName string, ...) ([]byte, string, string, string, error)
- func CheckIncomingAliasColumnName(col string) bool
- func CheckIncomingColumnName(col string) bool
- func GetTrcDbUrl(data map[string]interface{}) string
- func NewOptionsBuilder(opts ...Option)
- type Option
- type OptionsBuilder
Constants ¶
const RFC_ISO_8601 = "2006-01-02 15:04:05 -0700 MST"
Variables ¶
This section is empty.
Functions ¶
func CheckFlowDataIncoming ¶ added in v1.4.2
func CheckFlowDataIncoming(secretColumns map[string]string, secretValue string, dbName string, tableName string) ([]byte, string, string, string, error)
Provide a means to decrypt and compare a TrcDb table having encoded secrets in backend secret store. If the secretValue has the key "TierceronBase64" as a prefix
func CheckIncomingAliasColumnName ¶
CheckIncomingAliasColumnName - used to identify if the supplied col column name matches a user defined alias.
func CheckIncomingColumnName ¶
Whether to perform additional processing via the CheckFlowDataIncoming function... This flow logic section is essentially used to help decide whether a row in a table in trcdb has changed or not and requires serialization to the backend secret store.
func GetTrcDbUrl ¶
GetTrcDbUrl - Utilized by speculatio/fenestra to obtain a jdbc compliant connection url to the TrcDb database This can be used to perform direct queries against the TrcDb database using the go sql package. The data map is provided by the caller as convenience to provide things like dbport, etc... The override should return a jdbc compliant connection url to the TrcDb database.
func NewOptionsBuilder ¶
func NewOptionsBuilder(opts ...Option)
Types ¶
type OptionsBuilder ¶
type OptionsBuilder struct { CheckIncomingColumnName func(col string) bool CheckFlowDataIncoming func(secretColumns map[string]string, secretValue string, dbName string, tableName string) ([]byte, string, string, string, error) CheckIncomingAliasColumnName func(col string) bool GetTrcDbUrl func(data map[string]interface{}) string }
var BuildOptions *OptionsBuilder