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

Function WithDNS

tailnet/controllers.go:1456–1462  ·  view source on GitHub ↗

WithDNS configures the tunnelAllWorkspaceUpdatesController to set DNS names for all workspaces and agents it learns about.

(d DNSHostsSetter, ownerUsername string, options DNSNameOptions)

Source from the content-addressed store, hash-verified

1454// WithDNS configures the tunnelAllWorkspaceUpdatesController to set DNS names for all workspaces
1455// and agents it learns about.
1456func 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
1464func WithHandler(h UpdatesHandler) TunnelAllOption {
1465 return func(t *TunnelAllWorkspaceUpdatesController) {

Calls

no outgoing calls