gcp

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name contains name of the exporter.
	Name = "GCP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	GCSBucket string
	// contains filtered or unexported fields
}

Exporter is an instance of GCP Exporter.

func NewExporter

func NewExporter(spannerClient *spanner.Client, storageClient *storage.Service, GCSBucket string, uploadPayloads bool, workerCount int) (*Exporter, error)

NewExporter creates new GCP exporter.

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, sourceRepoName, sourceRepoPath, sourceID, sourceHash, sourcePath, sourceDescription string, samples []common.Sample) error

Export exports extracted data to GCP (Spanner + GCS).

func (*Exporter) Name

func (e *Exporter) Name() string

Name returns exporter name.

Jump to

Keyboard shortcuts

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