Documentation ¶
Index ¶
- func GenerateStructType(schema utils.JsonObject, baseType reflect.Type) (reflect.Type, errors.Error)
- func LoadTableModel(tableName string, schema utils.JsonObject, parentModel any) (models.DynamicTabler, errors.Error)
- func MapTo(x any, y any) errors.Error
- func ToDatabaseMap(tableName string, ifc any, createdAt *time.Time, updatedAt *time.Time) (map[string]any, errors.Error)
- type AddColumnOperation
- type ApiParams
- type DropColumnOperation
- type DropTableOperation
- type DynamicDomainScope
- type DynamicModelInfo
- type DynamicScopeModel
- func (d DynamicScopeModel) ConnectionId() uint64
- func (d *DynamicScopeModel) MarshalJSON() ([]byte, error)
- func (d DynamicScopeModel) ScopeId() string
- func (d DynamicScopeModel) ScopeName() string
- func (d DynamicScopeModel) ScopeParams() interface{}
- func (d *DynamicScopeModel) UnmarshalJSON(b []byte) error
- type ExecuteOperation
- type Operation
- type PipelineData
- type PluginExtension
- type PluginInfo
- type RemoteConnection
- type RemoteMigrationScript
- type RemotePlugin
- type RemoteScopeConfig
- type RenameTableOperation
- type ScopeConfigModel
- type ScopeModel
- type SubtaskMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateStructType ¶
func LoadTableModel ¶
func LoadTableModel(tableName string, schema utils.JsonObject, parentModel any) (models.DynamicTabler, errors.Error)
Types ¶
type AddColumnOperation ¶
type AddColumnOperation struct { Table string `json:"table"` Column string `json:"column"` ColumnType dal.ColumnType `json:"column_type"` }
type DropColumnOperation ¶
type DropTableOperation ¶
type DynamicDomainScope ¶
type DynamicModelInfo ¶
type DynamicModelInfo struct { JsonSchema map[string]any `json:"json_schema" validate:"required"` TableName string `json:"table_name" validate:"required"` }
func (DynamicModelInfo) LoadDynamicTabler ¶
func (d DynamicModelInfo) LoadDynamicTabler(parentModel any) (models.DynamicTabler, errors.Error)
type DynamicScopeModel ¶
type DynamicScopeModel struct {
models.DynamicTabler
}
func NewDynamicScopeModel ¶
func NewDynamicScopeModel(model models.DynamicTabler) *DynamicScopeModel
func (DynamicScopeModel) ConnectionId ¶
func (d DynamicScopeModel) ConnectionId() uint64
func (*DynamicScopeModel) MarshalJSON ¶
func (d *DynamicScopeModel) MarshalJSON() ([]byte, error)
func (DynamicScopeModel) ScopeId ¶
func (d DynamicScopeModel) ScopeId() string
func (DynamicScopeModel) ScopeName ¶
func (d DynamicScopeModel) ScopeName() string
func (DynamicScopeModel) ScopeParams ¶
func (d DynamicScopeModel) ScopeParams() interface{}
func (*DynamicScopeModel) UnmarshalJSON ¶
func (d *DynamicScopeModel) UnmarshalJSON(b []byte) error
type ExecuteOperation ¶
type PipelineData ¶
type PipelineData struct { Plan plugin.PipelinePlan `json:"plan"` Scopes []DynamicDomainScope `json:"scopes"` }
type PluginExtension ¶
type PluginExtension string
const ( None PluginExtension = "" Metric PluginExtension = "metric" Datasource PluginExtension = "datasource" )
type PluginInfo ¶
type PluginInfo struct { Name string `json:"name" validate:"required"` Description string `json:"description"` ConnectionModelInfo *DynamicModelInfo `json:"connection_model_info" validate:"required"` ScopeConfigModelInfo *DynamicModelInfo `json:"scope_config_model_info"` ScopeModelInfo *DynamicModelInfo `json:"scope_model_info" validate:"required"` ToolModelInfos []*DynamicModelInfo `json:"tool_model_infos"` MigrationScripts []RemoteMigrationScript `json:"migration_scripts"` PluginPath string `json:"plugin_path" validate:"required"` SubtaskMetas []SubtaskMeta `json:"subtask_metas"` Extension PluginExtension `json:"extension"` }
type RemoteConnection ¶
type RemoteConnection any
Type aliases used by the API helper for better readability
type RemoteMigrationScript ¶
type RemoteMigrationScript struct {
// contains filtered or unexported fields
}
func (*RemoteMigrationScript) Name ¶
func (s *RemoteMigrationScript) Name() string
func (*RemoteMigrationScript) UnmarshalJSON ¶
func (s *RemoteMigrationScript) UnmarshalJSON(data []byte) error
func (*RemoteMigrationScript) Up ¶
func (s *RemoteMigrationScript) Up(basicRes context.BasicRes) errors.Error
func (*RemoteMigrationScript) Version ¶
func (s *RemoteMigrationScript) Version() uint64
type RemotePlugin ¶
type RemotePlugin interface { plugin.PluginApi plugin.PluginTask plugin.PluginMeta plugin.PluginOpenApiSpec plugin.PluginModel plugin.PluginMigration plugin.PluginSource RunAutoMigrations() errors.Error }
RemotePlugin API supported by plugins running in different/remote processes
type RemoteScopeConfig ¶
type RemoteScopeConfig any
Type aliases used by the API helper for better readability
type RenameTableOperation ¶
type ScopeConfigModel ¶
type ScopeConfigModel struct { common.ScopeConfig `mapstructure:",squash"` ConnectionId uint64 `json:"connectionId"` Name string `json:"name"` }
type ScopeModel ¶
type SubtaskMeta ¶
type SubtaskMeta struct { Name string `json:"name" validate:"required"` EntryPointName string `json:"entry_point_name" validate:"required"` Arguments []string `json:"arguments"` Required bool `json:"required"` EnabledByDefault bool `json:"enabled_by_default"` Description string `json:"description" validate:"required"` DomainTypes []string `json:"domain_types" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.