kubernetes/pkg/kubelet/stats/provider_test.go

const offsetCPUUsageCores

const offsetCPUUsageCoreSeconds

const offsetMemPageFaults

const offsetMemMajorPageFaults

const offsetMemUsageBytes

const offsetMemRSSBytes

const offsetMemWorkingSetBytes

const offsetNetRxBytes

const offsetNetRxErrors

const offsetNetTxBytes

const offsetNetTxErrors

const offsetFsCapacity

const offsetFsAvailable

const offsetFsUsage

const offsetFsInodes

const offsetFsInodesFree

const offsetFsTotalUsageBytes

const offsetFsBaseUsageBytes

const offsetFsInodeUsage

const offsetAcceleratorDutyCycle

const offsetMemSwapUsageBytes

var timestamp

var creationTime

func TestGetCgroupStats(t *testing.T) {}

func TestGetCgroupCPUAndMemoryStats(t *testing.T) {}

func TestRootFsStats(t *testing.T) {}

func TestHasDedicatedImageFs(t *testing.T) {}

func getTerminatedContainerInfo(seed int, podName string, podNamespace string, containerName string) cadvisorapiv2.ContainerInfo {}

func getContainerInfoWithZeroCpuMem(seed int, podName string, podNamespace string, containerName string) cadvisorapiv2.ContainerInfo {}

func getTestContainerInfo(seed int, podName string, podNamespace string, containerName string) cadvisorapiv2.ContainerInfo {}

func getTestFsInfo(seed int) cadvisorapiv2.FsInfo {}

func getTestFsInfoWithDifferentMount(seed int, device string) cadvisorapiv2.FsInfo {}

func getPodVolumeStats(seed int, volumeName string) statsapi.VolumeStats {}

func generateCustomMetricSpec() []cadvisorapiv1.MetricSpec {}

func generateCustomMetrics(spec []cadvisorapiv1.MetricSpec) map[string][]cadvisorapiv1.MetricVal {}

func testTime(base time.Time, seed int) time.Time {}

func checkNetworkStats(t *testing.T, label string, seed int, stats *statsapi.NetworkStats) {}

func checkCPUStats(t *testing.T, label string, seed int, stats *statsapi.CPUStats) {}

func checkMemoryStats(t *testing.T, label string, seed int, info cadvisorapiv2.ContainerInfo, stats *statsapi.MemoryStats) {}

func checkSwapStats(t *testing.T, label string, seed int, info cadvisorapiv2.ContainerInfo, stats *statsapi.SwapStats) {}

func checkFsStats(t *testing.T, label string, seed int, stats *statsapi.FsStats) {}

func checkEphemeralStats(t *testing.T, label string, containerSeeds []int, volumeSeeds []int, containerLogStats []*volume.Metrics, stats *statsapi.FsStats) {}

type fakeResourceAnalyzer

func (o *fakeResourceAnalyzer) Start()                                               {}

func (o *fakeResourceAnalyzer) Get(context.Context, bool) (*statsapi.Summary, error) {}

func (o *fakeResourceAnalyzer) GetCPUAndMemoryStats(context.Context) (*statsapi.Summary, error) {}

func (o *fakeResourceAnalyzer) GetPodVolumeStats(uid types.UID) (serverstats.PodVolumeStats, bool) {}

type fakeContainerStatsProvider

func (p fakeContainerStatsProvider) ListPodStats(context.Context) ([]statsapi.PodStats, error) {}

func (p fakeContainerStatsProvider) ListPodStatsAndUpdateCPUNanoCoreUsage(context.Context) ([]statsapi.PodStats, error) {}

func (p fakeContainerStatsProvider) ListPodCPUAndMemoryStats(context.Context) ([]statsapi.PodStats, error) {}

func (p fakeContainerStatsProvider) ImageFsStats(context.Context) (*statsapi.FsStats, *statsapi.FsStats, error) {}

func (p fakeContainerStatsProvider) ImageFsDevice(context.Context) (string, error) {}