mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-12 03:28:12 +00:00
d5b3a9190a
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
67 lines
1.3 KiB
Protocol Buffer
67 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "github.com/crazy-max/diun/pb";
|
|
|
|
package pb;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message Manifest {
|
|
string tag = 1;
|
|
string mime_type = 2;
|
|
string digest = 3;
|
|
google.protobuf.Timestamp created = 4;
|
|
map<string, string> labels = 5;
|
|
string platform = 6;
|
|
int64 size = 7;
|
|
}
|
|
|
|
message ImageListRequest {}
|
|
|
|
message ImageListResponse {
|
|
message Image {
|
|
string name = 1;
|
|
int64 manifestsCount = 2;
|
|
Manifest latest = 3;
|
|
}
|
|
repeated Image images = 1;
|
|
}
|
|
|
|
message ImageInspectRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message ImageInspectResponse {
|
|
message Image {
|
|
string name = 1;
|
|
repeated Manifest manifests = 2;
|
|
}
|
|
Image image = 1;
|
|
}
|
|
|
|
message ImageRemoveRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message ImageRemoveResponse {
|
|
repeated Manifest manifests = 1;
|
|
}
|
|
|
|
message ImagePruneRequest {
|
|
bool all = 1;
|
|
string filter = 2;
|
|
}
|
|
|
|
message ImagePruneResponse {
|
|
message Image {
|
|
string name = 1;
|
|
repeated Manifest manifests = 2;
|
|
}
|
|
repeated Image images = 1;
|
|
}
|
|
|
|
service ImageService {
|
|
rpc ImageList(ImageListRequest) returns (ImageListResponse) {}
|
|
rpc ImageInspect(ImageInspectRequest) returns (ImageInspectResponse) {}
|
|
rpc ImageRemove(ImageRemoveRequest) returns (ImageRemoveResponse) {}
|
|
rpc ImagePrune(ImagePruneRequest) returns (ImagePruneResponse) {}
|
|
}
|