Documentation ¶
Index ¶
- func WithAdminClientMW(projectID, instanceName string) func(AdminClient) AdminClient
- func WithInstanceAdminClientMW(projectID string) func(InstanceAdminClient) InstanceAdminClient
- type AdminClient
- type AdminClientMW
- type Config
- type Extractor
- type InstanceAdminClient
- type InstanceAdminClientMW
- type InstancesFetcher
- type NewAdminClientFunc
- type NewClientFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAdminClientMW ¶ added in v0.9.1
func WithAdminClientMW(projectID, instanceName string) func(AdminClient) AdminClient
func WithInstanceAdminClientMW ¶ added in v0.9.1
func WithInstanceAdminClientMW(projectID string) func(InstanceAdminClient) InstanceAdminClient
Types ¶
type AdminClient ¶ added in v0.9.1
type AdminClient interface { Tables(ctx context.Context) ([]string, error) TableInfo(ctx context.Context, table string) (*bigtable.TableInfo, error) }
AdminClient is an interface for *bigtable.AdminClient
type AdminClientMW ¶ added in v0.9.1
type AdminClientMW struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { ProjectID string `json:"project_id" yaml:"project_id" mapstructure:"project_id" validate:"required"` ServiceAccountBase64 string `mapstructure:"service_account_base64"` // contains filtered or unexported fields }
Config holds the configurations for the bigtable extractor
type Extractor ¶
type Extractor struct { plugins.BaseExtractor // contains filtered or unexported fields }
Extractor used to extract bigtable metadata
func New ¶
func New(logger log.Logger, newClient NewClientFunc, newAdminClient NewAdminClientFunc) *Extractor
type InstanceAdminClient ¶ added in v0.9.1
type InstanceAdminClient interface {
Instances(ctx context.Context) ([]*bigtable.InstanceInfo, error)
}
InstanceAdminClient is an interface for *bigtable.InstanceAdminClient
type InstanceAdminClientMW ¶ added in v0.9.1
type InstanceAdminClientMW struct {
// contains filtered or unexported fields
}
func (*InstanceAdminClientMW) Instances ¶ added in v0.9.1
func (o *InstanceAdminClientMW) Instances(ctx context.Context) (res []*bigtable.InstanceInfo, err error)
type InstancesFetcher ¶
type InstancesFetcher interface {
Instances(context.Context) ([]*bigtable.InstanceInfo, error)
}
InstancesFetcher is an interface for fetching instances
type NewAdminClientFunc ¶ added in v0.9.1
type NewClientFunc ¶ added in v0.9.1
type NewClientFunc func(ctx context.Context, cfg Config) (InstanceAdminClient, error)
Click to show internal directories.
Click to hide internal directories.