get

package
v0.0.0-...-3439013 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUFlags

func CPUFlags(apiClient *clients.Settings, nsName string, workerImage string) map[string][]string

CPUFlags returns cpu flags list.

func CPUInfo

func CPUInfo(apiClient *clients.Settings, name, nsname, containerName, image string) map[string]string

CPUInfo retrieves cpu info of worker node.

func NfdResourceCount

func NfdResourceCount(apiClient *clients.Settings) map[string]int

NfdResourceCount count nfd topology and worker pods.

func NodeFeatureLabels

func NodeFeatureLabels(apiClient *clients.Settings, nodeSelector map[string]string) (map[string][]string, error)

NodeFeatureLabels return a map of all labels found in specific node.

func PodLogs

func PodLogs(apiClient *clients.Settings, nsname, podName string) (string, error)

PodLogs get a raw log from pod.

func PodRestartCount

func PodRestartCount(apiClient *clients.Settings, nsname, podName string) (int32, error)

PodRestartCount get pod's reset count.

Types

type PodState

type PodState struct {
	Name  string
	State string
}

PodState an object that describe the name and state of a pod.

func PodStatus

func PodStatus(apiClient *clients.Settings, nsname string) ([]PodState, error)

PodStatus return a list pod and state.

Jump to

Keyboard shortcuts

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