fake

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fake implements test fakes for the cloudmonitoring wrappers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeSeriesCreator

type TimeSeriesCreator struct {
	Calls []*monitoringpb.CreateTimeSeriesRequest
	Err   error
}

TimeSeriesCreator is a fake which implements the TimeSeriesCreator interface.

func (*TimeSeriesCreator) CreateTimeSeries

func (f *TimeSeriesCreator) CreateTimeSeries(ctx context.Context, req *monitoringpb.CreateTimeSeriesRequest, opts ...gax.CallOption) error

type TimeSeriesQuerier

type TimeSeriesQuerier struct {
	Calls []*monitoringpb.QueryTimeSeriesRequest
	Err   error
	TS    []*mrpb.TimeSeriesData
}

TimeSeriesQuerier is a fake which implements the TimeSeriesQuerier interface.

func (*TimeSeriesQuerier) QueryTimeSeries

func (f *TimeSeriesQuerier) QueryTimeSeries(ctx context.Context, req *monitoringpb.QueryTimeSeriesRequest, ops ...gax.CallOption) ([]*mrpb.TimeSeriesData, error)

Jump to

Keyboard shortcuts

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