Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMeterInfoResponse ¶
func GenerateMeterInfoResponse(meterdefinitions []v1beta1.MeterDefinition) []byte
func GetTestAPI ¶
func GetTestAPI(trip RoundTripFunc) v1.API
Types ¶
type FakeData ¶
type FakeData struct { ResultType string Result []*FakeResult }
type FakeMetrics ¶
type FakeResult ¶
type RoundTripFunc ¶
RoundTripFunc is a type that represents a round trip function call for std http lib
func MockResponseRoundTripper ¶
func MockResponseRoundTripper(file string, meterdefinitions []v1beta1.MeterDefinition) RoundTripFunc
type StubRoundTripper ¶
type StubRoundTripper struct {
StubRoundTrip RoundTripFunc
}
Click to show internal directories.
Click to hide internal directories.