mock

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const MetricCollectorNameMock = "mock-collector"
View Source
const MetricStoreNameMockLocalMemory = "mock-local-memory-store"

Variables

This section is empty.

Functions

func GenerateMockPods

func GenerateMockPods(namespaceNum, workloadNum, podNumPerWorkload int) []*v1.Pod

func ReplaceMetaInformerWithMockData

func ReplaceMetaInformerWithMockData(baseCtx *katalystbase.GenericContext, conf *config.Configuration)

Types

type MockCollector

type MockCollector struct {
	// contains filtered or unexported fields
}

MockCollector produces mock data for test.

func (*MockCollector) Name

func (m *MockCollector) Name() string

func (*MockCollector) Start

func (m *MockCollector) Start() error

func (*MockCollector) Stop

func (m *MockCollector) Stop() error

Jump to

Keyboard shortcuts

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