replayartifact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package replayartifact retains native launch artifacts beside test receipts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceUUID

func DeviceUUID(b [16]byte) string

DeviceUUID formats the CUDA device UUID as reported by nvidia-smi.

func Read

func Read(dir string, ref Ref) ([]byte, error)

Read verifies and returns the retained bytes for an artifact.

Types

type Custody

type Custody struct {
	// contains filtered or unexported fields
}

Custody binds a native receipt to the recorded run owner and GPU.

func ReadCustody

func ReadCustody(dir, target string) (Custody, error)

ReadCustody reads the redacted owner and single-GPU preflight CSV from the sealed run containing the case directory dir.

func (Custody) Check

func (c Custody) Check(lease, uuid string, executed bool) error

Check verifies the case lease and, for an executed case, its CUDA device ID.

type Ref

type Ref struct {
	File   string `json:"file"`
	SHA256 string `json:"sha256"`
}

Ref identifies an artifact relative to its private case directory.

func Write

func Write(dir, name string, data []byte) (Ref, error)

Write creates a private artifact, refusing to replace existing evidence.

Jump to

Keyboard shortcuts

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