Documentation ¶
Index ¶
- Variables
- func DescribePod(client kubernetes.Interface, podName string, namespace string) (*v1.Pod, error)
- func GetClusterNodes(clientset *kubernetes.Clientset) (map[string]Node, error)
- func GetCurrentContext(kubeConfigPath string) ([]string, error)
- func GetKubeConfig() (*rest.Config, string, error)
- func ListNamespaces(client kubernetes.Interface) (*v1.NamespaceList, error)
- func ListNodes(client kubernetes.Interface) (*v1.NodeList, error)
- func ListPods(client kubernetes.Interface) (*v1.PodList, error)
- type ComputeClass
- type Node
- type Workload
Constants ¶
This section is empty.
Variables ¶
View Source
var ComputeClasses [7]string = [7]string{"General-purpose", "Balanced", "Scale-out", "Scale-out arm64", "Performance", "Accelerator", "GPU Pod"}
Functions ¶
func DescribePod ¶
func GetClusterNodes ¶
func GetClusterNodes(clientset *kubernetes.Clientset) (map[string]Node, error)
func GetCurrentContext ¶
func ListNamespaces ¶
func ListNamespaces(client kubernetes.Interface) (*v1.NamespaceList, error)
Types ¶
type ComputeClass ¶
type ComputeClass int8
const ( ComputeClassGeneralPurpose ComputeClass = 0 ComputeClassBalanced ComputeClass = 1 ComputeClassScaleout ComputeClass = 2 ComputeClassScaleoutArm ComputeClass = 3 ComputeClassPerformance ComputeClass = 4 ComputeClassAccelerator ComputeClass = 5 ComputeClassGPUPod ComputeClass = 6 )
Click to show internal directories.
Click to hide internal directories.