Documentation
¶
Index ¶
- type ConfigProperties
- type Connection
- func (c *Connection) AsAI(instanceID string) (drivers.AIService, bool)
- func (c *Connection) AsAdmin(instanceID string) (drivers.AdminService, bool)
- func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
- func (c *Connection) AsFileStore() (drivers.FileStore, bool)
- func (c *Connection) AsInformationSchema() (drivers.InformationSchema, bool)
- func (c *Connection) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, error)
- func (c *Connection) AsModelManager(instanceID string) (drivers.ModelManager, bool)
- func (c *Connection) AsNotifier(properties map[string]any) (drivers.Notifier, error)
- func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
- func (c *Connection) AsObjectStore() (drivers.ObjectStore, bool)
- func (c *Connection) AsRegistry() (drivers.RegistryStore, bool)
- func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
- func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
- func (c *Connection) Close() error
- func (c *Connection) Config() map[string]any
- func (c *Connection) Driver() string
- func (c *Connection) FilePaths(ctx context.Context, src map[string]any) ([]string, error)
- func (c *Connection) Migrate(ctx context.Context) (err error)
- func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
- func (c *Connection) Ping(ctx context.Context) error
- type ModelInputProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProperties ¶
type ConfigProperties struct {
Headers map[string]string `mapstructure:"headers"`
// A list of HTTP/HTTPS URL prefixes that this connector is allowed to access.
// Useful when different URL namespaces use different credentials, enabling the
// system to choose the appropriate connector based on the URL path.
// Example formats: `https://example.com/` `https://example.com/path/` `https://example.com/path/prefix`
PathPrefixes []string `mapstructure:"path_prefixes"`
}
func NewConfigProperties ¶ added in v0.78.0
func NewConfigProperties(prop map[string]any) (*ConfigProperties, error)
type Connection ¶ added in v0.78.0
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) AsAI ¶ added in v0.78.0
func (c *Connection) AsAI(instanceID string) (drivers.AIService, bool)
AsAI implements drivers.Handle.
func (*Connection) AsAdmin ¶ added in v0.78.0
func (c *Connection) AsAdmin(instanceID string) (drivers.AdminService, bool)
AsAdmin implements drivers.Handle.
func (*Connection) AsCatalogStore ¶ added in v0.78.0
func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
AsCatalogStore implements drivers.Connection.
func (*Connection) AsFileStore ¶ added in v0.78.0
func (c *Connection) AsFileStore() (drivers.FileStore, bool)
func (*Connection) AsInformationSchema ¶ added in v0.78.0
func (c *Connection) AsInformationSchema() (drivers.InformationSchema, bool)
InformationSchema implements drivers.Handle.
func (*Connection) AsModelExecutor ¶ added in v0.78.0
func (c *Connection) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, error)
AsModelExecutor implements drivers.Handle.
func (*Connection) AsModelManager ¶ added in v0.78.0
func (c *Connection) AsModelManager(instanceID string) (drivers.ModelManager, bool)
AsModelManager implements drivers.Handle.
func (*Connection) AsNotifier ¶ added in v0.78.0
AsNotifier implements drivers.Connection.
func (*Connection) AsOLAP ¶ added in v0.78.0
func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
AsOLAP implements drivers.Connection.
func (*Connection) AsObjectStore ¶ added in v0.78.0
func (c *Connection) AsObjectStore() (drivers.ObjectStore, bool)
AsObjectStore implements drivers.Connection.
func (*Connection) AsRegistry ¶ added in v0.78.0
func (c *Connection) AsRegistry() (drivers.RegistryStore, bool)
AsRegistry implements drivers.Connection.
func (*Connection) AsRepoStore ¶ added in v0.78.0
func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
AsRepoStore implements drivers.Connection.
func (*Connection) AsWarehouse ¶ added in v0.78.0
func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
AsWarehouse implements drivers.Handle.
func (*Connection) Close ¶ added in v0.78.0
func (c *Connection) Close() error
Close implements drivers.Connection.
func (*Connection) Config ¶ added in v0.78.0
func (c *Connection) Config() map[string]any
Config implements drivers.Connection.
func (*Connection) Driver ¶ added in v0.78.0
func (c *Connection) Driver() string
Driver implements drivers.Connection.
func (*Connection) Migrate ¶ added in v0.78.0
func (c *Connection) Migrate(ctx context.Context) (err error)
Migrate implements drivers.Connection.
func (*Connection) MigrationStatus ¶ added in v0.78.0
func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
MigrationStatus implements drivers.Connection.