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) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, bool)
- 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) AsSQLStore() (drivers.SQLStore, bool)
- func (c *Connection) AsTransporter(from, to drivers.Handle) (drivers.Transporter, bool)
- func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
- func (c *Connection) Close() error
- func (c *Connection) Config() map[string]any
- func (c *Connection) Delete(ctx context.Context, res *drivers.ModelResult) error
- func (c *Connection) DownloadFiles(ctx context.Context, src map[string]any) (drivers.FileIterator, error)
- func (c *Connection) Driver() string
- func (c *Connection) Exists(ctx context.Context, res *drivers.ModelResult) (bool, error)
- func (c *Connection) GetBucketMetadata(ctx context.Context, req *runtimev1.S3GetBucketMetadataRequest) (string, error)
- func (c *Connection) GetCredentialsInfo(ctx context.Context) (provider string, exist bool, err error)
- func (c *Connection) ListBuckets(ctx context.Context) ([]string, error)
- func (c *Connection) ListObjects(ctx context.Context, propsMap map[string]any) ([]drivers.ObjectStoreEntry, error)
- func (c *Connection) ListObjectsRaw(ctx context.Context, req *runtimev1.S3ListObjectsRequest) ([]*runtimev1.S3Object, string, error)
- func (c *Connection) MergePartitionResults(a, b *drivers.ModelResult) (*drivers.ModelResult, 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
- func (c *Connection) Rename(ctx context.Context, res *drivers.ModelResult, newName string, ...) (*drivers.ModelResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProperties ¶ added in v0.48.0
type ConfigProperties struct { AccessKeyID string `mapstructure:"aws_access_key_id"` SecretAccessKey string `mapstructure:"aws_secret_access_key"` SessionToken string `mapstructure:"aws_access_token"` AllowHostAccess bool `mapstructure:"allow_host_access"` RetainFiles bool `mapstructure:"retain_files"` }
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) AsAI ¶ added in v0.41.0
func (c *Connection) AsAI(instanceID string) (drivers.AIService, bool)
AsAI implements drivers.Handle.
func (*Connection) AsAdmin ¶ added in v0.37.0
func (c *Connection) AsAdmin(instanceID string) (drivers.AdminService, bool)
AsAdmin implements drivers.Handle.
func (*Connection) AsCatalogStore ¶
func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
AsCatalogStore implements drivers.Connection.
func (*Connection) AsFileStore ¶
func (c *Connection) AsFileStore() (drivers.FileStore, bool)
AsFileStore implements drivers.Connection.
func (*Connection) AsModelExecutor ¶ added in v0.45.0
func (c *Connection) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, bool)
AsModelExecutor implements drivers.Handle.
func (*Connection) AsModelManager ¶ added in v0.45.0
func (c *Connection) AsModelManager(instanceID string) (drivers.ModelManager, bool)
AsModelManager implements drivers.Handle.
func (*Connection) AsNotifier ¶ added in v0.43.0
AsNotifier implements drivers.Connection.
func (*Connection) AsOLAP ¶
func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
AsOLAP implements drivers.Connection.
func (*Connection) AsObjectStore ¶
func (c *Connection) AsObjectStore() (drivers.ObjectStore, bool)
AsObjectStore implements drivers.Connection.
func (*Connection) AsRegistry ¶
func (c *Connection) AsRegistry() (drivers.RegistryStore, bool)
AsRegistry implements drivers.Connection.
func (*Connection) AsRepoStore ¶
func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
AsRepoStore implements drivers.Connection.
func (*Connection) AsSQLStore ¶ added in v0.31.0
func (c *Connection) AsSQLStore() (drivers.SQLStore, bool)
AsSQLStore implements drivers.Connection.
func (*Connection) AsTransporter ¶
func (c *Connection) AsTransporter(from, to drivers.Handle) (drivers.Transporter, bool)
AsTransporter implements drivers.Connection.
func (*Connection) AsWarehouse ¶ added in v0.48.0
func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
AsWarehouse implements drivers.Handle.
func (*Connection) Config ¶
func (c *Connection) Config() map[string]any
Config implements drivers.Connection.
func (*Connection) Delete ¶ added in v0.48.0
func (c *Connection) Delete(ctx context.Context, res *drivers.ModelResult) error
func (*Connection) DownloadFiles ¶
func (c *Connection) DownloadFiles(ctx context.Context, src map[string]any) (drivers.FileIterator, error)
DownloadFiles implements drivers.ObjectStore.
func (*Connection) Driver ¶
func (c *Connection) Driver() string
Driver implements drivers.Connection.
func (*Connection) Exists ¶ added in v0.48.0
func (c *Connection) Exists(ctx context.Context, res *drivers.ModelResult) (bool, error)
func (*Connection) GetBucketMetadata ¶
func (c *Connection) GetBucketMetadata(ctx context.Context, req *runtimev1.S3GetBucketMetadataRequest) (string, error)
func (*Connection) GetCredentialsInfo ¶
func (*Connection) ListBuckets ¶
func (c *Connection) ListBuckets(ctx context.Context) ([]string, error)
func (*Connection) ListObjects ¶
func (c *Connection) ListObjects(ctx context.Context, propsMap map[string]any) ([]drivers.ObjectStoreEntry, error)
ListObjects implements drivers.ObjectStore.
func (*Connection) ListObjectsRaw ¶ added in v0.48.0
func (c *Connection) ListObjectsRaw(ctx context.Context, req *runtimev1.S3ListObjectsRequest) ([]*runtimev1.S3Object, string, error)
func (*Connection) MergePartitionResults ¶ added in v0.51.0
func (c *Connection) MergePartitionResults(a, b *drivers.ModelResult) (*drivers.ModelResult, error)
func (*Connection) Migrate ¶
func (c *Connection) Migrate(ctx context.Context) (err error)
Migrate implements drivers.Connection.
func (*Connection) MigrationStatus ¶
func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
MigrationStatus implements drivers.Connection.
func (*Connection) Ping ¶ added in v0.47.0
func (c *Connection) Ping(ctx context.Context) error
Ping implements drivers.Handle.
func (*Connection) Rename ¶ added in v0.48.0
func (c *Connection) Rename(ctx context.Context, res *drivers.ModelResult, newName string, env *drivers.ModelEnv) (*drivers.ModelResult, error)