mock_metriccache

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_metriccache is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMetricCache) GetBECPUResourceMetric

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

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.

Jump to

Keyboard shortcuts

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