This commit is contained in:
domrichardson
2026-06-24 13:57:48 +01:00
parent ff6f0fadaa
commit 7cb4592fa3
4 changed files with 139 additions and 3 deletions
+6
View File
@@ -36,6 +36,7 @@ type UploadKeyRequest struct {
AgentToken string `json:"agent_token"`
PublicKey string `json:"public_key"`
Label string `json:"label"`
PrivateKey string `json:"private_key,omitempty"`
}
type UploadKeyResponse struct {
@@ -47,6 +48,11 @@ type UploadKeyResponse struct {
type ServerCommand struct {
CommandId string `json:"command_id"`
GenerateKey *GenerateKeyCmd `json:"generate_key,omitempty"`
DeleteKey *DeleteKeyCmd `json:"delete_key,omitempty"`
}
type DeleteKeyCmd struct {
Label string `json:"label"`
}
type GenerateKeyCmd struct {