Skip to content

Commit 923e8b5

Browse files
authored
Add connector fields to ACL (#64)
1 parent 21a9620 commit 923e8b5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tailscale/client.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,15 @@ type (
373373
}
374374

375375
NodeAttrGrant struct {
376-
Target []string `json:"target,omitempty" hujson:"Target,omitempty"`
377-
Attr []string `json:"attr,omitempty" hujson:"Attr,omitempty"`
376+
Target []string `json:"target,omitempty" hujson:"Target,omitempty"`
377+
Attr []string `json:"attr,omitempty" hujson:"Attr,omitempty"`
378+
App map[string][]*NodeAttrGrantApp `json:"app,omitempty" hujson:"App,omitempty"`
379+
}
380+
381+
NodeAttrGrantApp struct {
382+
Name string `json:"name,omitempty" hujson:"Name,omitempty"`
383+
Connectors []string `json:"connectors,omitempty" hujson:"Connectors,omitempty"`
384+
Domains []string `json:"domains,omitempty" hujson:"Domains,omitempty"`
378385
}
379386
)
380387

0 commit comments

Comments
 (0)