65
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
65
vendor/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
generated
vendored
@@ -79,7 +79,8 @@ service RuntimeService {
|
||||
// ContainerStatus returns status of the container. If the container is not
|
||||
// present, returns an error.
|
||||
rpc ContainerStatus(ContainerStatusRequest) returns (ContainerStatusResponse) {}
|
||||
// UpdateContainerResources updates ContainerConfig of the container.
|
||||
// UpdateContainerResources updates ContainerConfig of the container synchronously.
|
||||
// If runtime fails to transactionally update the requested resources, an error is returned.
|
||||
rpc UpdateContainerResources(UpdateContainerResourcesRequest) returns (UpdateContainerResourcesResponse) {}
|
||||
// ReopenContainerLog asks runtime to reopen the stdout/stderr log file
|
||||
// for the container. This is often called after the log file has been
|
||||
@@ -114,6 +115,13 @@ service RuntimeService {
|
||||
|
||||
// Status returns the status of the runtime.
|
||||
rpc Status(StatusRequest) returns (StatusResponse) {}
|
||||
|
||||
// CheckpointContainer checkpoints a container
|
||||
rpc CheckpointContainer(CheckpointContainerRequest) returns (CheckpointContainerResponse) {}
|
||||
|
||||
// GetContainerEvents gets container events from the CRI runtime
|
||||
rpc GetContainerEvents(GetEventsRequest) returns (stream ContainerEventResponse) {}
|
||||
|
||||
}
|
||||
|
||||
// ImageService defines the public APIs for managing images.
|
||||
@@ -755,7 +763,7 @@ message SELinuxOption {
|
||||
|
||||
// Capability contains the container capabilities to add or drop
|
||||
// Dropping a capability will drop it from all sets.
|
||||
// If a capability is added to only the add_capabilities list then it gets added to permitted,
|
||||
// If a capability is added to only the add_capabilities list then it gets added to permitted,
|
||||
// inheritable, effective and bounding sets, i.e. all sets except the ambient set.
|
||||
// If a capability is added to only the add_ambient_capabilities list then it gets added to all sets, i.e permitted
|
||||
// inheritable, effective, bounding and ambient sets.
|
||||
@@ -1151,6 +1159,8 @@ message ContainerStatus {
|
||||
repeated Mount mounts = 14;
|
||||
// Log path of container.
|
||||
string log_path = 15;
|
||||
// Resource limits configuration of the container.
|
||||
ContainerResources resources = 16;
|
||||
}
|
||||
|
||||
message ContainerStatusResponse {
|
||||
@@ -1163,6 +1173,14 @@ message ContainerStatusResponse {
|
||||
map<string, string> info = 2;
|
||||
}
|
||||
|
||||
// ContainerResources holds resource limits configuration for a container.
|
||||
message ContainerResources {
|
||||
// Resource limits configuration specific to Linux container.
|
||||
LinuxContainerResources linux = 1;
|
||||
// Resource limits configuration specific to Windows container.
|
||||
WindowsContainerResources windows = 2;
|
||||
}
|
||||
|
||||
message UpdateContainerResourcesRequest {
|
||||
// ID of the container to update.
|
||||
string container_id = 1;
|
||||
@@ -1543,3 +1561,46 @@ message ReopenContainerLogRequest {
|
||||
|
||||
message ReopenContainerLogResponse{
|
||||
}
|
||||
|
||||
message CheckpointContainerRequest {
|
||||
// ID of the container to be checkpointed.
|
||||
string container_id = 1;
|
||||
// Location of the checkpoint archive used for export
|
||||
string location = 2;
|
||||
// Timeout in seconds for the checkpoint to complete.
|
||||
// Timeout of zero means to use the CRI default.
|
||||
// Timeout > 0 means to use the user specified timeout.
|
||||
int64 timeout = 3;
|
||||
}
|
||||
|
||||
message CheckpointContainerResponse {}
|
||||
|
||||
message GetEventsRequest {}
|
||||
|
||||
message ContainerEventResponse {
|
||||
// ID of the container
|
||||
string container_id = 1;
|
||||
|
||||
// Type of the container event
|
||||
ContainerEventType container_event_type = 2;
|
||||
|
||||
// Creation timestamp of this event
|
||||
int64 created_at = 3;
|
||||
|
||||
// ID of the sandbox container
|
||||
PodSandboxMetadata pod_sandbox_metadata = 4;
|
||||
}
|
||||
|
||||
enum ContainerEventType {
|
||||
// Container created
|
||||
CONTAINER_CREATED_EVENT = 0;
|
||||
|
||||
// Container started
|
||||
CONTAINER_STARTED_EVENT = 1;
|
||||
|
||||
// Container stopped
|
||||
CONTAINER_STOPPED_EVENT = 2;
|
||||
|
||||
// Container deleted
|
||||
CONTAINER_DELETED_EVENT = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user