Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: remove tailnet from agent API and rename client API to tailnet#11303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 1 commit intomainfromspike/agent-tailnet-rpc-rename
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 15 additions & 34 deletionsagent/proto/agent.pb.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

3 changes: 0 additions & 3 deletionsagent/proto/agent.proto
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -256,7 +256,4 @@ service Agent {
rpcUpdateStartup(UpdateStartupRequest)returns (Startup);
rpcBatchUpdateMetadata(BatchUpdateMetadataRequest)returns (BatchUpdateMetadataResponse);
rpcBatchCreateLogs(BatchCreateLogsRequest)returns (BatchCreateLogsResponse);

rpcStreamDERPMaps(tailnet.v2.StreamDERPMapsRequest)returns (streamtailnet.v2.DERPMap);
rpcCoordinateTailnet(streamtailnet.v2.CoordinateRequest)returns (streamtailnet.v2.CoordinateResponse);
}
150 changes: 1 addition & 149 deletionsagent/proto/agent_drpc.pb.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

7 changes: 0 additions & 7 deletionscoderd/agentapi/api.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,7 +42,6 @@ type API struct {
*AppsAPI
*MetadataAPI
*LogsAPI
*TailnetAPI

mu sync.Mutex
cachedWorkspaceID uuid.UUID
Expand DownExpand Up@@ -146,12 +145,6 @@ func New(opts Options) *API {
PublishWorkspaceAgentLogsUpdateFn:opts.PublishWorkspaceAgentLogsUpdateFn,
}

api.TailnetAPI=&TailnetAPI{
Ctx:opts.Ctx,
DerpMapFn:opts.DerpMapFn,
DerpMapUpdateFrequency:opts.DerpMapUpdateFrequency,
}

returnapi
}

Expand Down
53 changes: 0 additions & 53 deletionscoderd/agentapi/tailnet.go
View file
Open in desktop

This file was deleted.

4 changes: 2 additions & 2 deletionstailnet/client.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,12 +11,12 @@ import (
"github.com/coder/coder/v2/tailnet/proto"
)

funcNewDRPCClient(conn net.Conn) (proto.DRPCClientClient,error) {
funcNewDRPCClient(conn net.Conn) (proto.DRPCTailnetClient,error) {
config:=yamux.DefaultConfig()
config.LogOutput=io.Discard
session,err:=yamux.Client(conn,config)
iferr!=nil {
returnnil,xerrors.Errorf("multiplex client: %w",err)
}
returnproto.NewDRPCClientClient(drpc.MultiplexedConn(session)),nil
returnproto.NewDRPCTailnetClient(drpc.MultiplexedConn(session)),nil
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp