Versions in this module Expand all Collapse all v0 v0.11.0 Oct 25, 2026 v0.10.0 Oct 20, 2026 Changes in this version + const OperationAgentUpgradeStart + var ErrConflict = errors.New("upgrade attempt conflicts with existing state") + var ErrDenied = errors.New("agent upgrade admission denied") + var ErrInvalid = errors.New("invalid agent upgrade request") + var ErrNotFound = errors.New("upgrade attempt not found") + var ErrUnavailable = errors.New("agent upgrade admission unavailable") + type AdmitRequest struct + ActorUID string + AllowReboot bool + ExpectedInstalledInventorySHA256 string + ExpectedRevocationEpoch uint64 + IdempotencyKey string + Namespace string + TargetID string + TargetManifestSHA256 string + VMUID string + WorkspaceName string + WorkspaceUID string + type Service struct + func NewService(store storage.Store, attempts storage.AgentUpgradeStore) *Service + func (s *Service) ActiveAttempt(ctx context.Context, vmUID string) (storage.AgentUpgradeAttempt, error) + func (s *Service) Admit(ctx context.Context, req AdmitRequest) (storage.AgentUpgradeAttempt, bool, error) + func (s *Service) Cancel(ctx context.Context, attemptID string) (storage.AgentUpgradeAttempt, error) + func (s *Service) Durability() storage.Durability + func (s *Service) Get(ctx context.Context, attemptID string) (storage.AgentUpgradeAttempt, error) + func (s *Service) Ready(ctx context.Context) error + func (s *Service) Rollback(ctx context.Context, attemptID string) (storage.AgentUpgradeAttempt, error)