mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 10:05:13 +00:00
35 lines
666 B
Go
35 lines
666 B
Go
package host
|
|
|
|
import "time"
|
|
|
|
type SnapshotID string
|
|
|
|
type Snapshot struct {
|
|
ID SnapshotID `json:"id"`
|
|
MachineID MachineID `json:"machine_id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
type CreateSnapshotRequest struct {
|
|
SnapshotID SnapshotID `json:"snapshot_id"`
|
|
}
|
|
|
|
type CreateSnapshotResponse struct {
|
|
Snapshot Snapshot `json:"snapshot"`
|
|
}
|
|
|
|
type GetSnapshotResponse struct {
|
|
Snapshot Snapshot `json:"snapshot"`
|
|
}
|
|
|
|
type ListSnapshotsResponse struct {
|
|
Snapshots []Snapshot `json:"snapshots"`
|
|
}
|
|
|
|
type RestoreSnapshotRequest struct {
|
|
MachineID MachineID `json:"machine_id"`
|
|
}
|
|
|
|
type RestoreSnapshotResponse struct {
|
|
Machine Machine `json:"machine"`
|
|
}
|