MCPcopy Index your code
hub / github.com/coder/coder / Clone

Method Clone

tailnet/controllers.go:1038–1049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1036}
1037
1038func (a *Agent) Clone() Agent {
1039 hosts := make(map[dnsname.FQDN][]netip.Addr, len(a.Hosts))
1040 for k, v := range a.Hosts {
1041 hosts[k] = slices.Clone(v)
1042 }
1043 return Agent{
1044 ID: a.ID,
1045 Name: a.Name,
1046 WorkspaceID: a.WorkspaceID,
1047 Hosts: hosts,
1048 }
1049}
1050
1051func (t *TunnelAllWorkspaceUpdatesController) New(client WorkspaceUpdatesClient) CloserWaiter {
1052 t.mu.Lock()

Callers 15

BytesMethod · 0.45
runCleanupFnsMethod · 0.45
PeekMethod · 0.45
nodeLockedMethod · 0.45
NewConnFunction · 0.45
GetNetInfoMethod · 0.45
hostsLockedMethod · 0.45
peerConfigLockedMethod · 0.45
setHostsMethod · 0.45
derpMapLockedMethod · 0.45

Calls

no outgoing calls