Documentation ¶
Index ¶
- type Connection
- func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
- func (c *Connection) AsFileStore() (drivers.FileStore, bool)
- 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) Close() error
- func (c *Connection) Config() map[string]any
- func (c *Connection) DownloadFiles(ctx context.Context, props map[string]any) (drivers.FileIterator, error)
- func (c *Connection) Driver() string
- func (c *Connection) GetCredentialsInfo(ctx context.Context) (string, bool, error)
- func (c *Connection) ListBuckets(ctx context.Context, req *runtimev1.GCSListBucketsRequest) ([]string, string, error)
- func (c *Connection) ListObjects(ctx context.Context, req *runtimev1.GCSListObjectsRequest) ([]*runtimev1.GCSObject, string, error)
- func (c *Connection) Migrate(ctx context.Context) (err error)
- func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) AsCatalogStore ¶
func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
Catalog implements drivers.Connection.
func (*Connection) AsFileStore ¶
func (c *Connection) AsFileStore() (drivers.FileStore, bool)
func (*Connection) AsOLAP ¶
func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
OLAP 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)
Registry implements drivers.Connection.
func (*Connection) AsRepoStore ¶
func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
Repo 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) Config ¶
func (c *Connection) Config() map[string]any
Config implements drivers.Connection.
func (*Connection) DownloadFiles ¶
func (c *Connection) DownloadFiles(ctx context.Context, props map[string]any) (drivers.FileIterator, error)
DownloadFiles returns a file iterator over objects stored in gcs. The credential json is read from config google_application_credentials. Additionally in case `allow_host_credentials` is true it looks for "Application Default Credentials" as well
func (*Connection) Driver ¶
func (c *Connection) Driver() string
Driver implements drivers.Connection.
func (*Connection) GetCredentialsInfo ¶
func (*Connection) ListBuckets ¶
func (c *Connection) ListBuckets(ctx context.Context, req *runtimev1.GCSListBucketsRequest) ([]string, string, error)
func (*Connection) ListObjects ¶
func (c *Connection) ListObjects(ctx context.Context, req *runtimev1.GCSListObjectsRequest) ([]*runtimev1.GCSObject, string, 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.