Documentation ¶
Index ¶
- type Config
- type Extractor
- func (e *Extractor) Extract(_ context.Context, emit plugins.Emit) error
- func (e *Extractor) GetColumn(dbName, tableName string) ([]*redshiftdataapiservice.ColumnMetadata, error)
- func (e *Extractor) GetDBList() ([]string, error)
- func (e *Extractor) GetTables(dbName string) ([]string, error)
- func (e *Extractor) Init(ctx context.Context, config plugins.Config) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClusterID string `json:"cluster_id" yaml:"cluster_id" mapstructure:"cluster_id" validate:"required"` DBName string `json:"db_name" yaml:"db_name" mapstructure:"db_name" validate:"required"` DBUser string `json:"db_user" yaml:"db_user" mapstructure:"db_user" validate:"required"` AWSRegion string `json:"aws_region" yaml:"aws_region" mapstructure:"aws_region" validate:"required"` Exclude string `json:"exclude" yaml:"exclude" mapstructure:"exclude"` }
Config holds the set of configuration for the metabase extractor
type Extractor ¶
type Extractor struct { plugins.BaseExtractor // contains filtered or unexported fields }
Extractor manages the extraction of data from the redshift server
func (*Extractor) Extract ¶
Extract collects metadata from the source. Metadata is collected through the emitter
func (*Extractor) GetColumn ¶
func (e *Extractor) GetColumn(dbName, tableName string) ([]*redshiftdataapiservice.ColumnMetadata, error)
GetColumn returns the column metadata of particular table in a database
type Option ¶
type Option func(*Extractor)
Option provides extension abstraction to Extractor constructor
func WithClient ¶
func WithClient(redshiftClient redshiftdataapiserviceiface.RedshiftDataAPIServiceAPI) Option
WithClient assign custom client to the Extractor constructor
Click to show internal directories.
Click to hide internal directories.