mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
2de8cdf160
Update the agent protobuf schema (agent/proto/agent.proto) to include: - subagent_id field in WorkspaceAgentDevcontainer message - id field in CreateSubAgentRequest message Bump the Agent API version from v2.7 to v2.8 and update all client references throughout the codebase (ConnectRPC27 -> ConnectRPC28, DRPCAgentClient27 -> DRPCAgentClient28).
63 lines
1.9 KiB
Go
63 lines
1.9 KiB
Go
package proto
|
|
|
|
import (
|
|
"context"
|
|
|
|
"storj.io/drpc"
|
|
)
|
|
|
|
// DRPCTailnetClient20 is the Tailnet API at v2.0.
|
|
type DRPCTailnetClient20 interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
StreamDERPMaps(ctx context.Context, in *StreamDERPMapsRequest) (DRPCTailnet_StreamDERPMapsClient, error)
|
|
Coordinate(ctx context.Context) (DRPCTailnet_CoordinateClient, error)
|
|
}
|
|
|
|
// DRPCTailnetClient21 is the Tailnet API at v2.1. It is functionally identical to 2.0, because the
|
|
// change was to the Agent API (GetAnnouncementBanners).
|
|
type DRPCTailnetClient21 interface {
|
|
DRPCTailnetClient20
|
|
}
|
|
|
|
// DRPCTailnetClient22 is the Tailnet API at v2.2. It adds telemetry support. Compatible with Coder
|
|
// v2.13+
|
|
type DRPCTailnetClient22 interface {
|
|
DRPCTailnetClient21
|
|
PostTelemetry(ctx context.Context, in *TelemetryRequest) (*TelemetryResponse, error)
|
|
}
|
|
|
|
// DRPCTailnetClient23 is the Tailnet API at v2.3. It adds resume token and workspace updates
|
|
// support. Compatible with Coder v2.18+.
|
|
type DRPCTailnetClient23 interface {
|
|
DRPCTailnetClient22
|
|
RefreshResumeToken(ctx context.Context, in *RefreshResumeTokenRequest) (*RefreshResumeTokenResponse, error)
|
|
WorkspaceUpdates(ctx context.Context, in *WorkspaceUpdatesRequest) (DRPCTailnet_WorkspaceUpdatesClient, error)
|
|
}
|
|
|
|
// DRPCTailnetClient24 is the Tailnet API at v2.4. It is functionally identical to 2.3, because the
|
|
// change was to the Agent API (ResourcesMonitoring and ReportConnection methods).
|
|
type DRPCTailnetClient24 interface {
|
|
DRPCTailnetClient23
|
|
}
|
|
|
|
// DRPCTailnetClient25 is the Tailnet API at v2.5.
|
|
type DRPCTailnetClient25 interface {
|
|
DRPCTailnetClient24
|
|
}
|
|
|
|
// DRPCTailnetClient26 is the Tailnet API at v2.6.
|
|
type DRPCTailnetClient26 interface {
|
|
DRPCTailnetClient25
|
|
}
|
|
|
|
// DRPCTailnetClient27 is the Tailnet API at v2.7.
|
|
type DRPCTailnetClient27 interface {
|
|
DRPCTailnetClient26
|
|
}
|
|
|
|
// DRPCTailnetClient28 is the Tailnet API at v2.8.
|
|
type DRPCTailnetClient28 interface {
|
|
DRPCTailnetClient27
|
|
}
|