mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 19:16:23 +00:00
agent: add PullImage to CDH proto file
CDH provides the image pull api. This commit adds the declaration of the API in the CDH proto file. This will be used in following commits. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
This commit is contained in:
parent
c27116fa8e
commit
997a1f35ab
@ -28,6 +28,21 @@ message SecureMountResponse {
|
||||
string mount_path = 1;
|
||||
}
|
||||
|
||||
message ImagePullRequest {
|
||||
// - `image_url`: The reference of the image to pull
|
||||
string image_url = 1;
|
||||
|
||||
// - `bundle_path`: The path to store the OCI bundle. This path
|
||||
// should be created by client, and initially empty. After the RPC is
|
||||
// called, a mounted `rootfs` directory under the this path. Note
|
||||
// that this path is CDH's root filesystem, not the caller's root filesystem.
|
||||
// However, usually the caller (kata-agent) and the server (CDH) runs on the same
|
||||
// root, so it's safe to use an absolute path of kata-agent.
|
||||
string bundle_path = 2;
|
||||
}
|
||||
|
||||
message ImagePullResponse {}
|
||||
|
||||
service SealedSecretService {
|
||||
rpc UnsealSecret(UnsealSecretInput) returns (UnsealSecretOutput) {};
|
||||
}
|
||||
@ -46,4 +61,10 @@ message GetResourceResponse {
|
||||
|
||||
service GetResourceService {
|
||||
rpc GetResource(GetResourceRequest) returns (GetResourceResponse) {};
|
||||
}
|
||||
|
||||
// ImagePullService is used to pull images from a remote registry
|
||||
// and mount the resulting root filesystems.
|
||||
service ImagePullService {
|
||||
rpc PullImage(ImagePullRequest) returns (ImagePullResponse) {};
|
||||
}
|
Loading…
Reference in New Issue
Block a user