mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 07:04:43 +00:00
feat: add guest config injection and host nat wiring
This commit is contained in:
parent
28ca0219d9
commit
a12f54ba5d
8 changed files with 332 additions and 6 deletions
|
|
@ -15,10 +15,21 @@ type Machine struct {
|
|||
StartedAt *time.Time `json:"started_at,omitempty"`
|
||||
}
|
||||
|
||||
type GuestConfig struct {
|
||||
AuthorizedKeys []string `json:"authorized_keys,omitempty"`
|
||||
LoginWebhook *GuestLoginWebhook `json:"login_webhook,omitempty"`
|
||||
}
|
||||
|
||||
type GuestLoginWebhook struct {
|
||||
URL string `json:"url"`
|
||||
BearerToken string `json:"bearer_token,omitempty"`
|
||||
}
|
||||
|
||||
type CreateMachineRequest struct {
|
||||
MachineID MachineID `json:"machine_id"`
|
||||
Artifact ArtifactRef `json:"artifact"`
|
||||
UserVolumeIDs []VolumeID `json:"user_volume_ids,omitempty"`
|
||||
MachineID MachineID `json:"machine_id"`
|
||||
Artifact ArtifactRef `json:"artifact"`
|
||||
UserVolumeIDs []VolumeID `json:"user_volume_ids,omitempty"`
|
||||
GuestConfig *GuestConfig `json:"guest_config,omitempty"`
|
||||
}
|
||||
|
||||
type CreateMachineResponse struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue