views

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AgentUpgradeAvailabilityMap is a map indexing the attribute names of
	// AgentUpgradeAvailability by view name.
	AgentUpgradeAvailabilityMap = map[string][]string{
		"default": {
			"policy_enabled",
			"storage_available",
			"workspace_eligible",
			"inventory_available",
			"admissible",
			"deny_reason",
			"active_attempt_id",
			"vm_uid",
		},
	}
	// AgentUpgradeAttemptMap is a map indexing the attribute names of
	// AgentUpgradeAttempt by view name.
	AgentUpgradeAttemptMap = map[string][]string{
		"default": {
			"attempt_id",
			"namespace",
			"workspace_name",
			"workspace_uid",
			"vm_uid",
			"actor_id",
			"state",
			"target_id",
			"target_manifest_sha256",
			"expected_installed_inventory_sha256",
			"allow_reboot",
			"cancel_requested",
			"execution_id",
			"recording_id",
			"recording_url",
			"status_url",
			"journal_sequence",
			"predecessor_target_id",
			"predecessor_manifest_sha256",
			"error_code",
			"admitted_at",
			"staging_at",
			"prepared_at",
			"installing_at",
			"awaiting_reboot_at",
			"verifying_at",
			"rollback_requested_at",
			"rolling_back_at",
			"terminal_at",
			"updated_at",
		},
	}
)

Functions

func ValidateAgentUpgradeAttempt

func ValidateAgentUpgradeAttempt(result *AgentUpgradeAttempt) (err error)

ValidateAgentUpgradeAttempt runs the validations defined on the viewed result type AgentUpgradeAttempt.

func ValidateAgentUpgradeAttemptView

func ValidateAgentUpgradeAttemptView(result *AgentUpgradeAttemptView) (err error)

ValidateAgentUpgradeAttemptView runs the validations defined on AgentUpgradeAttemptView using the "default" view.

func ValidateAgentUpgradeAvailability

func ValidateAgentUpgradeAvailability(result *AgentUpgradeAvailability) (err error)

ValidateAgentUpgradeAvailability runs the validations defined on the viewed result type AgentUpgradeAvailability.

func ValidateAgentUpgradeAvailabilityView

func ValidateAgentUpgradeAvailabilityView(result *AgentUpgradeAvailabilityView) (err error)

ValidateAgentUpgradeAvailabilityView runs the validations defined on AgentUpgradeAvailabilityView using the "default" view.

Types

type AgentUpgradeAttempt

type AgentUpgradeAttempt struct {
	// Type to project
	Projected *AgentUpgradeAttemptView
	// View to render
	View string
}

AgentUpgradeAttempt is the viewed result type that is projected based on a view.

type AgentUpgradeAttemptView

type AgentUpgradeAttemptView struct {
	// Server-minted attempt identifier
	AttemptID     *string
	Namespace     *string
	WorkspaceName *string
	WorkspaceUID  *string
	// Controller-owned VM UID the reservation is bound to
	VMUID *string
	// UID of the administrator that admitted the attempt
	ActorID *string
	// Attempt lifecycle state
	State                            *string
	TargetID                         *string
	TargetManifestSha256             *string
	ExpectedInstalledInventorySha256 *string
	// Whether the admitted attempt may run the bounded reboot sequence
	AllowReboot *bool
	// An administrator requested safe-boundary cancellation
	CancelRequested *bool
	// Linked execution admission record (recording authorization)
	ExecutionID *string
	// Protected attempt recording
	RecordingID *string
	// Independently authorized recording link
	RecordingURL *string
	// Canonical status URL for this attempt
	StatusURL *string
	// Last reconciled guest journal sequence
	JournalSequence *uint64
	// Pinned rollback predecessor target
	PredecessorTargetID *string
	// Pinned rollback predecessor manifest digest
	PredecessorManifestSha256 *string
	// Bounded machine-readable failure code
	ErrorCode *string
	// RFC3339 admission timestamp
	AdmittedAt          *string
	StagingAt           *string
	PreparedAt          *string
	InstallingAt        *string
	AwaitingRebootAt    *string
	VerifyingAt         *string
	RollbackRequestedAt *string
	RollingBackAt       *string
	TerminalAt          *string
	UpdatedAt           *string
}

AgentUpgradeAttemptView is a type that runs validations on a projected type.

type AgentUpgradeAvailability

type AgentUpgradeAvailability struct {
	// Type to project
	Projected *AgentUpgradeAvailabilityView
	// View to render
	View string
}

AgentUpgradeAvailability is the viewed result type that is projected based on a view.

type AgentUpgradeAvailabilityView

type AgentUpgradeAvailabilityView struct {
	// Platform policy admits agent upgrades
	PolicyEnabled *bool
	// Durable attempt/recording storage is ready
	StorageAvailable *bool
	// Workspace resolves as an eligible running Windows VM
	WorkspaceEligible *bool
	// Fresh authenticated guest inventory is available (guest integration)
	InventoryAvailable *bool
	// A start request would be admitted right now
	Admissible *bool
	// Why start would be denied; empty when admissible
	DenyReason *string
	// Reservation-holding attempt for this VM, when present
	ActiveAttemptID *string
	// Resolved controller-owned VM UID, when eligible
	VMUID *string
}

AgentUpgradeAvailabilityView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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