clusteredfailures

package
v0.0.0-...-a82170c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides methods to export clustered failures to BigQuery via the BigQuery Write API.

func NewClient

func NewClient(ctx context.Context, projectID string) (s *Client, reterr error)

NewClient creates a new client for exporting clustered failures via the BigQuery Write API.

func (*Client) Close

func (s *Client) Close() (reterr error)

Close releases resources held by the client.

func (*Client) Insert

func (s *Client) Insert(ctx context.Context, rows []*bqpb.ClusteredFailureRow) error

Insert inserts the given rows in BigQuery.

type FakeClient

type FakeClient struct {
	Insertions []*bqp.ClusteredFailureRow
}

FakeClient represents a fake implementation of the clustered failures exporter, for testing.

func NewFakeClient

func NewFakeClient() *FakeClient

NewFakeClient creates a new FakeClient for exporting clustered failures.

func (*FakeClient) Insert

func (fc *FakeClient) Insert(ctx context.Context, rows []*bqp.ClusteredFailureRow) error

Insert inserts the given rows in BigQuery.

Jump to

Keyboard shortcuts

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