syntax = "proto3";

// If you make any changes make sure you run: make regenerate-proto

package gitlab.agent.workspaces.rpc;

option go_package = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/workspaces/rpc";

import "internal/tool/grpctool/grpctool.proto";
import "buf/validate/validate.proto";

// HTTPHeaderExtra is passed in grpctool.HttpRequest.extra.
message HTTPHeaderExtra {
  // HTTP Port of the workspace that is the target.
  uint32 port = 1 [(buf.validate.field).uint32.lte = 65535];
}

service Workspaces {
  rpc TunnelHTTP (stream grpctool.HttpRequest) returns (stream grpctool.HttpResponse) {
  }
}
