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 implements the ClientInterface interface
type ClientInterface ¶
type ClientInterface interface { // PushToPerf puts data into a deterministically named folder based on the time // and the given folderName and filePrefix. For example, with folderName = "My-Task" // and filePrefix = "nanobench", and now = "2017-09-01 at 13:XX UTC", PushToPerf would put // data in a file like: // gs://my-bucket/foobar/2017/09/01/13/My-Task/nanobench_[hash]_[timestamp].json PushToPerf(now time.Time, folderName, filePrefix string, data format.BenchData) error }
ClientInterface is the interface around getting data into Perf's ingestion.
type MockPerfClient ¶
func NewMockPerfClient ¶
func NewMockPerfClient() *MockPerfClient
NewMockPerfClient returns a pointer to a newly created struct. We return the pointer because we want to make sure the methods on mock.Mock stay accessible, e.g. m.On()
func (*MockPerfClient) PushToPerf ¶
Click to show internal directories.
Click to hide internal directories.