mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-20 10:27:46 +08:00

Removes gogo/protobuf from buildx and updates to a version of moby/buildkit where gogo is removed. This also changes how the proto files are generated. This is because newer versions of protobuf are more strict about name conflicts. If two files have the same name (even if they are relative paths) and are used in different protoc commands, they'll conflict in the registry. Since protobuf file generation doesn't work very well with `paths=source_relative`, this removes the `go:generate` expression and just relies on the dockerfile to perform the generation. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
55 lines
1.1 KiB
Protocol Buffer
55 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package moby.filesync.v1;
|
|
|
|
option go_package = "github.com/moby/buildkit/session/auth";
|
|
|
|
service Auth{
|
|
rpc Credentials(CredentialsRequest) returns (CredentialsResponse);
|
|
rpc FetchToken(FetchTokenRequest) returns (FetchTokenResponse);
|
|
rpc GetTokenAuthority(GetTokenAuthorityRequest) returns (GetTokenAuthorityResponse);
|
|
rpc VerifyTokenAuthority(VerifyTokenAuthorityRequest) returns (VerifyTokenAuthorityResponse);
|
|
}
|
|
|
|
message CredentialsRequest {
|
|
string Host = 1;
|
|
}
|
|
|
|
message CredentialsResponse {
|
|
string Username = 1;
|
|
string Secret = 2;
|
|
}
|
|
|
|
message FetchTokenRequest {
|
|
string ClientID = 1;
|
|
string Host = 2;
|
|
string Realm = 3;
|
|
string Service = 4;
|
|
repeated string Scopes = 5;
|
|
}
|
|
|
|
message FetchTokenResponse {
|
|
string Token = 1;
|
|
int64 ExpiresIn = 2; // seconds
|
|
int64 IssuedAt = 3; // timestamp
|
|
}
|
|
|
|
message GetTokenAuthorityRequest {
|
|
string Host = 1;
|
|
bytes Salt = 2;
|
|
}
|
|
|
|
message GetTokenAuthorityResponse {
|
|
bytes PublicKey = 1;
|
|
}
|
|
|
|
message VerifyTokenAuthorityRequest {
|
|
string Host = 1;
|
|
bytes Payload = 2;
|
|
bytes Salt = 3;
|
|
}
|
|
|
|
message VerifyTokenAuthorityResponse {
|
|
bytes Signed = 1;
|
|
}
|