WithDNS configures the tunnelAllWorkspaceUpdatesController to set DNS names for all workspaces and agents it learns about.
(d DNSHostsSetter, ownerUsername string, options DNSNameOptions)
| 1454 | // WithDNS configures the tunnelAllWorkspaceUpdatesController to set DNS names for all workspaces |
| 1455 | // and agents it learns about. |
| 1456 | func WithDNS(d DNSHostsSetter, ownerUsername string, options DNSNameOptions) TunnelAllOption { |
| 1457 | return func(t *TunnelAllWorkspaceUpdatesController) { |
| 1458 | t.dnsHostSetter = d |
| 1459 | t.ownerUsername = ownerUsername |
| 1460 | t.dnsNameOptions = options |
| 1461 | } |
| 1462 | } |
| 1463 | |
| 1464 | func WithHandler(h UpdatesHandler) TunnelAllOption { |
| 1465 | return func(t *TunnelAllWorkspaceUpdatesController) { |
no outgoing calls