-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: headroom provisioner models (#1795)
- Loading branch information
Showing
5 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
/// Used by the runner service to send requests to control plane, where the requested resources | ||
/// will be provisioned. | ||
#[derive(Serialize, Deserialize)] | ||
pub struct ResourceRequest { | ||
/// The resource input returned from the runtime::load call. | ||
pub resources: Vec<Vec<u8>>, | ||
/// Used by the control plane to return provisioned resource data to the runner. | ||
#[derive(Serialize, Deserialize, Clone)] | ||
pub struct ResourceResponse { | ||
/// The resource output returned from provisioning. | ||
pub resource: Vec<u8>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters