This commit is contained in:
domrichardson
2026-06-16 09:37:32 +01:00
parent fc58c057dc
commit 69010f4aa1
4 changed files with 202 additions and 7 deletions
+6
View File
@@ -102,3 +102,9 @@ func (c *Client) UploadGeneratedKey(serverID, agentToken, publicKey, label strin
}
return resp.KeyId, nil
}
// CommandStream opens a long-lived bidirectional stream for server-pushed commands.
// The caller controls the stream lifetime via ctx.
func (c *Client) CommandStream(ctx context.Context) (pb.KeyManager_CommandStreamClient, error) {
return c.client.CommandStream(ctx)
}