Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intent ¶
type Intent struct {
IntentID string `json:"intentID,omitempty"`
PodName string `json:"podName,omitempty"`
PodID string `json:"podID,omitempty"`
NodeID string `json:"nodeID,omitempty"`
K8sNamespace string `json:"k8sNamespace,omitempty"`
CommandRegex string `json:"commandRegex,omitempty"`
Priority int `json:"priority,omitempty"`
ExecutionTime int64 `json:"executionTime,omitempty"`
PodLabels map[string]string `json:"podLabels,omitempty"`
}
type LabelSelector ¶
type PodInfo ¶
type PodInfo struct {
PodUID string `json:"pod_uid"`
PodID string `json:"pod_id,omitempty"`
Processes []PodProcess `json:"processes"`
}
PodInfo represents pod information with associated processes
type PodProcess ¶
type PodProcess struct {
PID int `json:"pid"`
Command string `json:"command"`
PPID int `json:"ppid,omitempty"`
ContainerID string `json:"container_id,omitempty"`
}
PodProcess represents a process information within a pod
type SchedulingIntents ¶
type SchedulingIntents struct {
Priority bool `json:"priority"` // If true, set vtime to minimum vtime
ExecutionTime uint64 `json:"execution_time"` // Time slice for this process in nanoseconds
PID int `json:"pid,omitempty"` // Process ID to apply this strategy to
Selectors []LabelSelector `json:"selectors,omitempty"` // Label selectors to match pods
CommandRegex string `json:"command_regex,omitempty"` // Regex to match process command
}
Click to show internal directories.
Click to hide internal directories.