Some extra documentation for LLMs (#377)

This commit is contained in:
Fedor Korotkov 2025-12-03 14:45:58 -05:00 committed by GitHub
parent 5c162ce603
commit 173a34b083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@ const (
ActionDelete Action = "delete" ActionDelete Action = "delete"
) )
/**
* Mapping of actions on how to act for a remote VM state based on a local VM state.
*/
var transitions = map[mo.Option[v1.VMStatus]]map[mo.Option[v1.VMStatus]]Action{ var transitions = map[mo.Option[v1.VMStatus]]map[mo.Option[v1.VMStatus]]Action{
mo.None[v1.VMStatus](): { mo.None[v1.VMStatus](): {
mo.None[v1.VMStatus](): ActionIgnore, mo.None[v1.VMStatus](): ActionIgnore,
@ -32,7 +35,7 @@ var transitions = map[mo.Option[v1.VMStatus]]map[mo.Option[v1.VMStatus]]Action{
mo.Some(v1.VMStatusPending): { mo.Some(v1.VMStatusPending): {
mo.None[v1.VMStatus](): ActionCreate, mo.None[v1.VMStatus](): ActionCreate,
mo.Some(v1.VMStatusPending): ActionMonitorPending, mo.Some(v1.VMStatusPending): ActionMonitorPending,
mo.Some(v1.VMStatusRunning): ActionReportRunning, mo.Some(v1.VMStatusRunning): ActionReportRunning, // example, remote state is pending and local state is running
mo.Some(v1.VMStatusFailed): ActionFail, mo.Some(v1.VMStatusFailed): ActionFail,
}, },
mo.Some(v1.VMStatusRunning): { mo.Some(v1.VMStatusRunning): {