Documentation
¶
Index ¶
- Constants
- type Config
- type Source
- func (s *Source) BigtableAdminClient() *bigtable.AdminClient
- func (s *Source) BigtableClient() *bigtable.Client
- func (s *Source) BigtableInstanceAdminClient() *bigtable.InstanceAdminClient
- func (s *Source) CreateCluster(ctx context.Context, instanceId, clusterId, zone string, numNodes int32) (any, error)
- func (s *Source) CreateInstance(ctx context.Context, instanceId, displayName, clusterId, zone string, ...) (any, error)
- func (s *Source) CreateLogicalView(ctx context.Context, instanceId, logicalViewId, query string) (any, error)
- func (s *Source) CreateMaterializedView(ctx context.Context, instanceId, materializedViewId, query string) (any, error)
- func (s *Source) CreateTable(ctx context.Context, tableId, columnFamily string) (any, error)
- func (s *Source) DeleteCluster(ctx context.Context, instanceId, clusterId string) (any, error)
- func (s *Source) DeleteInstance(ctx context.Context, instanceId string) (any, error)
- func (s *Source) DeleteLogicalView(ctx context.Context, instanceId, logicalViewId string) (any, error)
- func (s *Source) DeleteMaterializedView(ctx context.Context, instanceId, materializedViewId string) (any, error)
- func (s *Source) DeleteTable(ctx context.Context, tableId string) (any, error)
- func (s *Source) GetCluster(ctx context.Context, instanceId, clusterId string) (any, error)
- func (s *Source) GetInstance(ctx context.Context, instanceId string) (any, error)
- func (s *Source) GetLogicalView(ctx context.Context, instanceId, logicalViewId string) (any, error)
- func (s *Source) GetMaterializedView(ctx context.Context, instanceId, materializedViewId string) (any, error)
- func (s *Source) GetTable(ctx context.Context, tableId string) (any, error)
- func (s *Source) InstanceID() string
- func (s *Source) ListClusters(ctx context.Context, instanceId string) (any, error)
- func (s *Source) ListInstances(ctx context.Context) (any, error)
- func (s *Source) ListLogicalViews(ctx context.Context, instanceId string) (any, error)
- func (s *Source) ListMaterializedViews(ctx context.Context, instanceId string) (any, error)
- func (s *Source) ListTables(ctx context.Context) (any, error)
- func (s *Source) ProjectID() string
- func (s *Source) RunSQL(ctx context.Context, statement string, configParam parameters.Parameters, ...) (any, error)
- func (s *Source) SourceType() string
- func (s *Source) ToConfig() sources.SourceConfig
- func (s *Source) UpdateCluster(ctx context.Context, instanceId, clusterId string, serveNodes int32) (any, error)
- func (s *Source) UpdateInstance(ctx context.Context, instanceId, displayName string) (any, error)
- func (s *Source) UpdateLogicalView(ctx context.Context, instanceId, logicalViewId, query string) (any, error)
- func (s *Source) UpdateMaterializedView(ctx context.Context, instanceId, materializedViewId, query string) (any, error)
- func (s *Source) UpdateTable(ctx context.Context, tableId string, disableChangeStream bool) (any, error)
Constants ¶
View Source
const SourceType string = "bigtable"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Type string `yaml:"type" validate:"required"`
Project string `yaml:"project" validate:"required"`
Instance string `yaml:"instance" validate:"required"`
}
func (Config) Initialize ¶
func (Config) SourceConfigType ¶
type Source ¶
type Source struct {
Config
Client *bigtable.Client
InstanceAdmin *bigtable.InstanceAdminClient
Admin *bigtable.AdminClient
}
func (*Source) BigtableAdminClient ¶ added in v1.9.0
func (s *Source) BigtableAdminClient() *bigtable.AdminClient
func (*Source) BigtableClient ¶
func (*Source) BigtableInstanceAdminClient ¶ added in v1.9.0
func (s *Source) BigtableInstanceAdminClient() *bigtable.InstanceAdminClient
func (*Source) CreateCluster ¶ added in v1.9.0
func (*Source) CreateInstance ¶ added in v1.9.0
func (*Source) CreateLogicalView ¶ added in v1.9.0
func (*Source) CreateMaterializedView ¶ added in v1.9.0
func (*Source) CreateTable ¶ added in v1.9.0
func (*Source) DeleteCluster ¶ added in v1.9.0
func (*Source) DeleteInstance ¶ added in v1.9.0
func (*Source) DeleteLogicalView ¶ added in v1.9.0
func (*Source) DeleteMaterializedView ¶ added in v1.9.0
func (*Source) DeleteTable ¶ added in v1.9.0
func (*Source) GetCluster ¶ added in v1.9.0
func (*Source) GetInstance ¶ added in v1.9.0
func (*Source) GetLogicalView ¶ added in v1.9.0
func (*Source) GetMaterializedView ¶ added in v1.9.0
func (*Source) InstanceID ¶ added in v1.9.0
func (*Source) ListClusters ¶ added in v1.9.0
func (*Source) ListInstances ¶ added in v1.9.0
func (*Source) ListLogicalViews ¶ added in v1.9.0
func (*Source) ListMaterializedViews ¶ added in v1.9.0
func (*Source) ListTables ¶ added in v1.9.0
func (*Source) RunSQL ¶
func (s *Source) RunSQL(ctx context.Context, statement string, configParam parameters.Parameters, params parameters.ParamValues) (any, error)
func (*Source) SourceType ¶
func (*Source) ToConfig ¶
func (s *Source) ToConfig() sources.SourceConfig
func (*Source) UpdateCluster ¶ added in v1.9.0
func (*Source) UpdateInstance ¶ added in v1.9.0
func (*Source) UpdateLogicalView ¶ added in v1.9.0
func (*Source) UpdateMaterializedView ¶ added in v1.9.0
Click to show internal directories.
Click to hide internal directories.