package
Version:
v1.37.0
Opens a new window with list of versions in this module.
Published: Jul 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Metadata struct {
Name string `json:"name"`
}
type Node struct {
Name string `json:"name"`
Host string `json:"host"`
Label string `json:"label"`
AllocatableResource Resource `json:"allocatableResource"`
RequestedResource Resource `json:"requestedResource"`
Unschedulable bool `json:"unschedulable"`
}
type Proto struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata Metadata `json:"metadata"`
Spec Spec `json:"spec"`
}
type Resource struct {
MilliCPU int64 `json:"milliCPU"`
Memory int64 `json:"memory"`
Storage int64 `json:"storage"`
}
type Result struct {
Name string `json:"name"`
Error string `json:"error"`
}
type Spec struct {
Task Task `json:"task"`
Nodes []Node `json:"nodes"`
}
type Task struct {
Name string `json:"name"`
NodeName string `json:"nodeName"`
NodeSelectors []string `json:"nodeSelectors"`
RequestedResource Resource `json:"requestedResource"`
ToleratesUnschedulable bool `json:"toleratesUnschedulable"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.