Documentation ¶
Overview ¶
Package mock_metriccache is a generated GoMock package.
Index ¶
- type MockMetricCache
- func (m *MockMetricCache) EXPECT() *MockMetricCacheMockRecorder
- func (m *MockMetricCache) GetBECPUResourceMetric(param *metriccache.QueryParam) metriccache.BECPUResourceQueryResult
- func (m *MockMetricCache) GetContainerResourceMetric(containerID *string, param *metriccache.QueryParam) metriccache.ContainerResourceQueryResult
- func (m *MockMetricCache) GetContainerThrottledMetric(containerID *string, param *metriccache.QueryParam) metriccache.ContainerThrottledQueryResult
- func (m *MockMetricCache) GetNodeCPUInfo(param *metriccache.QueryParam) (*metriccache.NodeCPUInfo, error)
- func (m *MockMetricCache) GetNodeResourceMetric(param *metriccache.QueryParam) metriccache.NodeResourceQueryResult
- func (m *MockMetricCache) GetPodResourceMetric(podUID *string, param *metriccache.QueryParam) metriccache.PodResourceQueryResult
- func (m *MockMetricCache) GetPodThrottledMetric(podUID *string, param *metriccache.QueryParam) metriccache.PodThrottledQueryResult
- func (m *MockMetricCache) InsertBECPUResourceMetric(t time.Time, metric *metriccache.BECPUResourceMetric) error
- func (m *MockMetricCache) InsertContainerResourceMetric(t time.Time, containerResUsed *metriccache.ContainerResourceMetric) error
- func (m *MockMetricCache) InsertContainerThrottledMetrics(t time.Time, metric *metriccache.ContainerThrottledMetric) error
- func (m *MockMetricCache) InsertNodeCPUInfo(info *metriccache.NodeCPUInfo) error
- func (m *MockMetricCache) InsertNodeResourceMetric(t time.Time, nodeResUsed *metriccache.NodeResourceMetric) error
- func (m *MockMetricCache) InsertPodResourceMetric(t time.Time, podResUsed *metriccache.PodResourceMetric) error
- func (m *MockMetricCache) InsertPodThrottledMetrics(t time.Time, metric *metriccache.PodThrottledMetric) error
- func (m *MockMetricCache) Run(stopCh <-chan struct{}) error
- type MockMetricCacheMockRecorder
- func (mr *MockMetricCacheMockRecorder) GetBECPUResourceMetric(param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetContainerResourceMetric(containerID, param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetContainerThrottledMetric(containerID, param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetNodeCPUInfo(param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetNodeResourceMetric(param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetPodResourceMetric(podUID, param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) GetPodThrottledMetric(podUID, param interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertBECPUResourceMetric(t, metric interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertContainerResourceMetric(t, containerResUsed interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertContainerThrottledMetrics(t, metric interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertNodeCPUInfo(info interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertNodeResourceMetric(t, nodeResUsed interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertPodResourceMetric(t, podResUsed interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) InsertPodThrottledMetrics(t, metric interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Run(stopCh interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetricCache ¶
type MockMetricCache struct {
// contains filtered or unexported fields
}
MockMetricCache is a mock of MetricCache interface.
func NewMockMetricCache ¶
func NewMockMetricCache(ctrl *gomock.Controller) *MockMetricCache
NewMockMetricCache creates a new mock instance.
func (*MockMetricCache) EXPECT ¶
func (m *MockMetricCache) EXPECT() *MockMetricCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetricCache) GetBECPUResourceMetric ¶
func (m *MockMetricCache) GetBECPUResourceMetric(param *metriccache.QueryParam) metriccache.BECPUResourceQueryResult
GetBECPUResourceMetric mocks base method.
func (*MockMetricCache) GetContainerResourceMetric ¶
func (m *MockMetricCache) GetContainerResourceMetric(containerID *string, param *metriccache.QueryParam) metriccache.ContainerResourceQueryResult
GetContainerResourceMetric mocks base method.
func (*MockMetricCache) GetContainerThrottledMetric ¶
func (m *MockMetricCache) GetContainerThrottledMetric(containerID *string, param *metriccache.QueryParam) metriccache.ContainerThrottledQueryResult
GetContainerThrottledMetric mocks base method.
func (*MockMetricCache) GetNodeCPUInfo ¶
func (m *MockMetricCache) GetNodeCPUInfo(param *metriccache.QueryParam) (*metriccache.NodeCPUInfo, error)
GetNodeCPUInfo mocks base method.
func (*MockMetricCache) GetNodeResourceMetric ¶
func (m *MockMetricCache) GetNodeResourceMetric(param *metriccache.QueryParam) metriccache.NodeResourceQueryResult
GetNodeResourceMetric mocks base method.
func (*MockMetricCache) GetPodResourceMetric ¶
func (m *MockMetricCache) GetPodResourceMetric(podUID *string, param *metriccache.QueryParam) metriccache.PodResourceQueryResult
GetPodResourceMetric mocks base method.
func (*MockMetricCache) GetPodThrottledMetric ¶
func (m *MockMetricCache) GetPodThrottledMetric(podUID *string, param *metriccache.QueryParam) metriccache.PodThrottledQueryResult
GetPodThrottledMetric mocks base method.
func (*MockMetricCache) InsertBECPUResourceMetric ¶
func (m *MockMetricCache) InsertBECPUResourceMetric(t time.Time, metric *metriccache.BECPUResourceMetric) error
InsertBECPUResourceMetric mocks base method.
func (*MockMetricCache) InsertContainerResourceMetric ¶
func (m *MockMetricCache) InsertContainerResourceMetric(t time.Time, containerResUsed *metriccache.ContainerResourceMetric) error
InsertContainerResourceMetric mocks base method.
func (*MockMetricCache) InsertContainerThrottledMetrics ¶
func (m *MockMetricCache) InsertContainerThrottledMetrics(t time.Time, metric *metriccache.ContainerThrottledMetric) error
InsertContainerThrottledMetrics mocks base method.
func (*MockMetricCache) InsertNodeCPUInfo ¶
func (m *MockMetricCache) InsertNodeCPUInfo(info *metriccache.NodeCPUInfo) error
InsertNodeCPUInfo mocks base method.
func (*MockMetricCache) InsertNodeResourceMetric ¶
func (m *MockMetricCache) InsertNodeResourceMetric(t time.Time, nodeResUsed *metriccache.NodeResourceMetric) error
InsertNodeResourceMetric mocks base method.
func (*MockMetricCache) InsertPodResourceMetric ¶
func (m *MockMetricCache) InsertPodResourceMetric(t time.Time, podResUsed *metriccache.PodResourceMetric) error
InsertPodResourceMetric mocks base method.
func (*MockMetricCache) InsertPodThrottledMetrics ¶
func (m *MockMetricCache) InsertPodThrottledMetrics(t time.Time, metric *metriccache.PodThrottledMetric) error
InsertPodThrottledMetrics mocks base method.
func (*MockMetricCache) Run ¶
func (m *MockMetricCache) Run(stopCh <-chan struct{}) error
Run mocks base method.
type MockMetricCacheMockRecorder ¶
type MockMetricCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricCacheMockRecorder is the mock recorder for MockMetricCache.
func (*MockMetricCacheMockRecorder) GetBECPUResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) GetBECPUResourceMetric(param interface{}) *gomock.Call
GetBECPUResourceMetric indicates an expected call of GetBECPUResourceMetric.
func (*MockMetricCacheMockRecorder) GetContainerResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) GetContainerResourceMetric(containerID, param interface{}) *gomock.Call
GetContainerResourceMetric indicates an expected call of GetContainerResourceMetric.
func (*MockMetricCacheMockRecorder) GetContainerThrottledMetric ¶
func (mr *MockMetricCacheMockRecorder) GetContainerThrottledMetric(containerID, param interface{}) *gomock.Call
GetContainerThrottledMetric indicates an expected call of GetContainerThrottledMetric.
func (*MockMetricCacheMockRecorder) GetNodeCPUInfo ¶
func (mr *MockMetricCacheMockRecorder) GetNodeCPUInfo(param interface{}) *gomock.Call
GetNodeCPUInfo indicates an expected call of GetNodeCPUInfo.
func (*MockMetricCacheMockRecorder) GetNodeResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) GetNodeResourceMetric(param interface{}) *gomock.Call
GetNodeResourceMetric indicates an expected call of GetNodeResourceMetric.
func (*MockMetricCacheMockRecorder) GetPodResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) GetPodResourceMetric(podUID, param interface{}) *gomock.Call
GetPodResourceMetric indicates an expected call of GetPodResourceMetric.
func (*MockMetricCacheMockRecorder) GetPodThrottledMetric ¶
func (mr *MockMetricCacheMockRecorder) GetPodThrottledMetric(podUID, param interface{}) *gomock.Call
GetPodThrottledMetric indicates an expected call of GetPodThrottledMetric.
func (*MockMetricCacheMockRecorder) InsertBECPUResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) InsertBECPUResourceMetric(t, metric interface{}) *gomock.Call
InsertBECPUResourceMetric indicates an expected call of InsertBECPUResourceMetric.
func (*MockMetricCacheMockRecorder) InsertContainerResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) InsertContainerResourceMetric(t, containerResUsed interface{}) *gomock.Call
InsertContainerResourceMetric indicates an expected call of InsertContainerResourceMetric.
func (*MockMetricCacheMockRecorder) InsertContainerThrottledMetrics ¶
func (mr *MockMetricCacheMockRecorder) InsertContainerThrottledMetrics(t, metric interface{}) *gomock.Call
InsertContainerThrottledMetrics indicates an expected call of InsertContainerThrottledMetrics.
func (*MockMetricCacheMockRecorder) InsertNodeCPUInfo ¶
func (mr *MockMetricCacheMockRecorder) InsertNodeCPUInfo(info interface{}) *gomock.Call
InsertNodeCPUInfo indicates an expected call of InsertNodeCPUInfo.
func (*MockMetricCacheMockRecorder) InsertNodeResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) InsertNodeResourceMetric(t, nodeResUsed interface{}) *gomock.Call
InsertNodeResourceMetric indicates an expected call of InsertNodeResourceMetric.
func (*MockMetricCacheMockRecorder) InsertPodResourceMetric ¶
func (mr *MockMetricCacheMockRecorder) InsertPodResourceMetric(t, podResUsed interface{}) *gomock.Call
InsertPodResourceMetric indicates an expected call of InsertPodResourceMetric.
func (*MockMetricCacheMockRecorder) InsertPodThrottledMetrics ¶
func (mr *MockMetricCacheMockRecorder) InsertPodThrottledMetrics(t, metric interface{}) *gomock.Call
InsertPodThrottledMetrics indicates an expected call of InsertPodThrottledMetrics.
func (*MockMetricCacheMockRecorder) Run ¶
func (mr *MockMetricCacheMockRecorder) Run(stopCh interface{}) *gomock.Call
Run indicates an expected call of Run.