fake

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUs

type CPUs struct{}

func (CPUs) GetAllocatableCPUs

func (cc CPUs) GetAllocatableCPUs() []int64

func (CPUs) GetCPUs

func (cc CPUs) GetCPUs(podUID, containerName string) []int64

type Devices

type Devices struct{}

func (Devices) GetAllocatableDevices

func (dd Devices) GetAllocatableDevices() []*podresourcesapi.ContainerDevices

func (Devices) GetDevices

func (dd Devices) GetDevices(podUID, containerName string) []*podresourcesapi.ContainerDevices

func (Devices) UpdateAllocatedDevices

func (dd Devices) UpdateAllocatedDevices()

type Memory

type Memory struct{}

func (Memory) GetAllocatableMemory

func (mm Memory) GetAllocatableMemory() []*podresourcesapi.ContainerMemory

func (Memory) GetMemory

func (mm Memory) GetMemory(podUID, containerName string) []*podresourcesapi.ContainerMemory

type Pods

type Pods struct{}

func (Pods) GetPods

func (pp Pods) GetPods() []*corev1.Pod

Jump to

Keyboard shortcuts

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