types/appctype: define the nodeAttrs type for dns-driven app connectors

Signed-off-by: Tom DNetto <tom@tailscale.com>
Updates: https://github.com/tailscale/corp/issues/15440
Code-authored-by: Podtato <podtato@tailscale.com>
pull/10034/head
Tom DNetto 1 year ago committed by Tom
parent a7c80c332a
commit df4b730438

@ -57,3 +57,16 @@ type SNIProxyConfig struct {
// the domain starts with a `.` that means any subdomain of the suffix.
AllowedDomains []string `json:",omitempty"`
}
// AppConnectorAttr describes a set of domains
// serviced by specified app connectors.
type AppConnectorAttr struct {
// Name is the name of this collection of domains.
Name string `json:"name,omitempty"`
// Domains enumerates the domains serviced by the specified app connectors.
// Domains can be of the form: example.com, or *.example.com.
Domains []string `json:"domains,omitempty"`
// Connectors enumerates the app connectors which service these domains.
// These can be any target type supported by Tailscale's ACL language.
Connectors []string `json:"connectors,omitempty"`
}

Loading…
Cancel
Save