chore: Update protobuf definitions using latest containerd version v2.1.1

This commit is contained in:
Bryant Biggs 2025-05-22 14:34:46 -05:00 committed by Maksym Pavlenko
parent 8469d6d7a8
commit c0b92c4e96
8 changed files with 50 additions and 6 deletions

View File

@ -128,8 +128,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04]
containerd: [v1.6.38, v1.7.27, v2.0.5]
os: [ubuntu-latest]
containerd: [v1.6.38, v1.7.27, v2.1.1]
steps:
- name: Checkout extensions

View File

@ -23,6 +23,11 @@ import "github.com/containerd/containerd/api/types/fieldpath.proto";
option go_package = "github.com/containerd/containerd/api/events;events";
option (containerd.types.fieldpath_all) = true;
message ContentCreate {
string digest = 1;
int64 size = 2;
}
message ContentDelete {
string digest = 1;
}

View File

@ -145,5 +145,5 @@ message DeleteImageRequest {
//
// If image descriptor does not match the same digest,
// the delete operation will return "not found" error.
containerd.types.Descriptor target = 3;
optional containerd.types.Descriptor target = 3;
}

View File

@ -34,9 +34,9 @@ import "google/protobuf/descriptor.proto";
option go_package = "github.com/containerd/containerd/api/types;types";
extend google.protobuf.FileOptions {
bool fieldpath_all = 63300;
optional bool fieldpath_all = 63300;
}
extend google.protobuf.MessageOptions {
bool fieldpath = 64400;
optional bool fieldpath = 64400;
}

View File

@ -27,6 +27,16 @@ message OCIRegistry {
RegistryResolver resolver = 2;
}
enum HTTPDebug {
DISABLED = 0;
// Enable HTTP debugging
DEBUG = 1;
// Enable HTTP requests tracing
TRACE = 2;
// Enable both HTTP debugging and requests tracing
BOTH = 3;
}
message RegistryResolver {
// auth_stream is used to refer to a stream which auth callbacks may be
// made on.
@ -40,6 +50,13 @@ message RegistryResolver {
string default_scheme = 4;
// Force skip verify
// CA callback? Client TLS callback?
// Whether to debug/trace HTTP requests to OCI registry.
HTTPDebug http_debug = 5;
// Stream ID to use for HTTP logs (when logs are streamed to client).
// When empty, logs are written to containerd logs.
string logs_stream = 6;
}
// AuthRequest is sent as a callback on a stream

View File

@ -23,6 +23,11 @@ import "github.com/containerd/containerd/api/types/fieldpath.proto";
option go_package = "github.com/containerd/containerd/api/events;events";
option (containerd.types.fieldpath_all) = true;
message ContentCreate {
string digest = 1;
int64 size = 2;
}
message ContentDelete {
string digest = 1;
}

View File

@ -27,6 +27,16 @@ message OCIRegistry {
RegistryResolver resolver = 2;
}
enum HTTPDebug {
DISABLED = 0;
// Enable HTTP debugging
DEBUG = 1;
// Enable HTTP requests tracing
TRACE = 2;
// Enable both HTTP debugging and requests tracing
BOTH = 3;
}
message RegistryResolver {
// auth_stream is used to refer to a stream which auth callbacks may be
// made on.
@ -40,6 +50,13 @@ message RegistryResolver {
string default_scheme = 4;
// Force skip verify
// CA callback? Client TLS callback?
// Whether to debug/trace HTTP requests to OCI registry.
HTTPDebug http_debug = 5;
// Stream ID to use for HTTP logs (when logs are streamed to client).
// When empty, logs are written to containerd logs.
string logs_stream = 6;
}
// AuthRequest is sent as a callback on a stream

View File

@ -8,7 +8,7 @@
# For each crate, the script expects a text file named `rsync.txt` in the crate's directory.
# The file should contain a list of proto files that should be synchronized from containerd.
VERSION="v2.0.1"
VERSION="v2.1.1"
set -x