bigtable

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

bigtable

Usage

source:
  name: bigtable
  config:
    project_id: google-project-id

Inputs

Key Value Example Description required
project_id string my-project BigTable Project ID true
Notes

You will have to set the env var GOOGLE_APPLICATION_CREDENTIALS with value as path of the service account json file.

Outputs

Field Sample Value
resource.urn project_id.instance_name.table_name
resource.name table_name
resource.service bigtable
properties.fields Fields
Fields
Field Sample Value
column_family [{\"Name\":\"ts\",\"GCPolicy\":\"(age() \\u003e 90d)\"}]

Contributing

Refer to the contribution guidelines for information on contributing to this module.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectID string `json:"project_id" yaml:"project_id" mapstructure:"project_id" validate:"required"`
}

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 added in v0.1.6

func New(logger log.Logger) *Extractor

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, emit plugins.Emit) (err error)

Extract checks if the extractor is configured and if so, then extracts the metadata and returns the assets.

func (*Extractor) Init added in v0.1.6

func (e *Extractor) Init(ctx context.Context, config plugins.Config) (err error)

type InstancesFetcher

type InstancesFetcher interface {
	Instances(context.Context) ([]*bigtable.InstanceInfo, error)
}

InstancesFetcher is an interface for fetching instances

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL