Versions in this module Expand all Collapse all v1 v1.4.0 Dec 1, 2026 Changes in this version + func AppendCSVAsset(spec *inventory.ImportBundleSpec, line string) error + func BuildHostTrustCheck(req ports.HostTrustRequest, known []ports.PublicKeyInfo, revoked bool) (ports.HostTrustCheck, error) + func DigestAuditEntries(entries []ports.AuditEntry) (sum [sha256.Size]byte, err error) + func ParseCSVImportBundle(format string, raw []byte) (out inventory.ImportBundle, err error) + func PreferredAlgosFromKeys(known []ports.PublicKeyInfo) (out []string) + func ResolveSimTier4(hosts []ports.OpenSSHVirtualHost, target option.OriginalHostSpec, ...) option.OptionLayer + func SignSimKey(prefix string, key inventory.KeyFingerprint, algorithm string, data []byte) (ports.Signature, error) + type AuditLedger struct + Entries []ports.AuditEntry + Locks map[ports.ProcessInstanceID]*ProcLock + func NewAuditLedger() *AuditLedger + func (l *AuditLedger) AcquireLockLocked(procID ports.ProcessInstanceID) error + func (l *AuditLedger) MutateLockLocked(lk *ProcLock, opID security.OperationID, stage bool) bool + func (l *AuditLedger) ReconcileLocked(now time.Time, enospc bool, enospcErr error, onLogScan func()) (out ports.CrashReconcileReport, err error) + func (l *AuditLedger) TerminateLockLocked(procID ports.ProcessInstanceID, closed, crash bool) + type ClockCore struct + func NewClockCore(start time.Time) *ClockCore + func (c *ClockCore) Advance(d time.Duration) + func (c *ClockCore) AdvanceToNext() (delta time.Duration, ok bool) + func (c *ClockCore) NewTimer(d time.Duration) ports.Timer + func (c *ClockCore) Now() time.Time + func (c *ClockCore) PendingTimers() int + func (c *ClockCore) Since(t time.Time) time.Duration + func (c *ClockCore) Sleep(ctx context.Context, d time.Duration) error + func (c *ClockCore) WaitPending(ctx context.Context, n int) error + type ClockTimer struct + func (t *ClockTimer) C() <-chan time.Time + func (t *ClockTimer) Reset(d time.Duration) bool + func (t *ClockTimer) Stop() bool + type JournalMap struct + func NewJournalMap() *JournalMap + func (m *JournalMap) AppendLocked(rec fsm.TransferJournalRecord) + func (m *JournalMap) CorruptGenerationLocked(id security.OperationID, generation uint64, cause error) + func (m *JournalMap) DeleteLocked(id security.OperationID) error + func (m *JournalMap) ListActiveLocked() []security.OperationID + func (m *JournalMap) LoadGenerationsLocked(id security.OperationID) ([]ports.JournalGenerationSnapshot, error) + func (m *JournalMap) LoadLocked(id security.OperationID) ([]fsm.TransferJournalRecord, error) + func (m *JournalMap) PruneGenerationLocked(id security.OperationID, generation uint64) error + type ProcLock struct + Active map[security.OperationID]bool + Live bool