datastore

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQ added in v0.13.0

type BQ struct {
	// contains filtered or unexported fields
}

func NewBQ added in v0.13.0

func NewBQ(client *bigquery.Client, dataset string) (*BQ, error)

func (*BQ) CreateTable added in v0.13.0

func (b *BQ) CreateTable(ctx context.Context, table string) error

func (*BQ) FS added in v0.13.0

func (b *BQ) FS(table string) (fs.FS, error)

func (*BQ) Store added in v0.13.0

func (b *BQ) Store(ctx context.Context, table string, r *report.Report) error

type Datastore

type Datastore interface {
	Store(ctx context.Context, path string, r *report.Report) error
	FS(path string) (fs.FS, error)
}

type GCS added in v0.13.0

type GCS struct {
	// contains filtered or unexported fields
}

func NewGCS added in v0.13.0

func NewGCS(client *storage.Client, b string) (*GCS, error)

func (*GCS) FS added in v0.13.0

func (g *GCS) FS(path string) (fs.FS, error)

func (*GCS) Store added in v0.13.0

func (g *GCS) Store(ctx context.Context, path string, r *report.Report) error

type GCSFS added in v0.13.0

type GCSFS struct {
	// contains filtered or unexported fields
}

func (*GCSFS) Open added in v0.13.0

func (fsys *GCSFS) Open(name string) (fs.File, error)

type Github

type Github struct {
	// contains filtered or unexported fields
}

func NewGithub

func NewGithub(gh *gh.Gh, r, b string) (*Github, error)

func (*Github) FS added in v0.13.0

func (g *Github) FS(path string) (fs.FS, error)

func (*Github) Store

func (g *Github) Store(ctx context.Context, path string, r *report.Report) error

type Local added in v0.13.0

type Local struct {
	// contains filtered or unexported fields
}

func NewLocal added in v0.13.0

func NewLocal(root string) (*Local, error)

func (*Local) FS added in v0.13.0

func (l *Local) FS(path string) (fs.FS, error)

func (*Local) Store added in v0.13.0

func (l *Local) Store(ctx context.Context, path string, r *report.Report) error

type LocalFS added in v0.13.0

type LocalFS struct {
	// contains filtered or unexported fields
}

func (*LocalFS) Open added in v0.13.0

func (fsys *LocalFS) Open(name string) (fs.File, error)

type ReportRecord added in v0.13.0

type ReportRecord struct {
	Id                  string               `bigquery:"id"`
	Owner               string               `bigquery:"owner"`
	Repo                string               `bigquery:"repo"`
	Ref                 string               `bigquery:"ref"`
	Commit              string               `bigquery:"commit"`
	CoverageTotal       bigquery.NullInt64   `bigquery:"coverage_total"`
	CoverageCovered     bigquery.NullInt64   `bigquery:"coverage_covered"`
	CodeToTestRatioCode bigquery.NullInt64   `bigquery:"code_to_test_ratio_code"`
	CodeToTestRatioTest bigquery.NullInt64   `bigquery:"code_to_test_ratio_test"`
	TestExecutionTime   bigquery.NullFloat64 `bigquery:"test_execution_time"`
	Timestamp           time.Time            `bigquery:"timestamp"`
	Raw                 string               `bigquery:"raw"`
}

type S3 added in v0.13.0

type S3 struct {
	// contains filtered or unexported fields
}

func NewS3 added in v0.13.0

func NewS3(client s3iface.S3API, b string) (*S3, error)

func (*S3) FS added in v0.13.0

func (s *S3) FS(path string) (fs.FS, error)

func (*S3) Store added in v0.13.0

func (s *S3) Store(ctx context.Context, path string, r *report.Report) error

Jump to

Keyboard shortcuts

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