mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-18 04:27:06 +02:00
This moves `pkg/config`, `pkg/client` and `pkg/constants` under `pkg/machinery` umbrella. And `pkg/machinery` is published as Go module inside Talos repository. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
44 lines
849 B
Protocol Buffer
44 lines
849 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package common;
|
|
|
|
option go_package = "github.com/talos-systems/talos/pkg/machinery/api/common";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
enum Code {
|
|
FATAL = 0;
|
|
LOCKED = 1;
|
|
}
|
|
|
|
message Error {
|
|
Code code = 1;
|
|
string message = 2;
|
|
repeated google.protobuf.Any details = 3;
|
|
}
|
|
|
|
// Common metadata message nested in all reply message types
|
|
message Metadata {
|
|
// hostname of the server response comes from (injected by proxy)
|
|
string hostname = 1;
|
|
// error is set if request failed to the upstream (rest of response is
|
|
// undefined)
|
|
string error = 2;
|
|
}
|
|
|
|
message Data {
|
|
Metadata metadata = 1;
|
|
bytes bytes = 2;
|
|
}
|
|
|
|
message DataResponse { repeated Data messages = 1; }
|
|
|
|
message Empty { Metadata metadata = 1; }
|
|
|
|
message EmptyResponse { repeated Empty messages = 1; }
|
|
|
|
enum ContainerDriver {
|
|
CONTAINERD = 0;
|
|
CRI = 1;
|
|
}
|