Skip to content

Commit eeb1d64

Browse files
authored
Adding auto approver fields (#16)
1 parent 931531d commit eeb1d64

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tailscale/client.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,18 @@ func (c *Client) DNSNameservers(ctx context.Context) ([]string, error) {
203203
}
204204

205205
type ACL struct {
206-
ACLs []ACLEntry `json:"acls" hujson:"ACLs,omitempty"`
207-
Groups map[string][]string `json:"groups,omitempty" hujson:"Groups,omitempty"`
208-
Hosts map[string]string `json:"hosts,omitempty" hujson:"Hosts,omitempty"`
209-
TagOwners map[string][]string `json:"tagowners,omitempty" hujson:"TagOwners,omitempty"`
210-
DERPMap *ACLDERPMap `json:"derpMap,omitempty" hujson:"DerpMap,omitempty"`
211-
Tests []ACLTest `json:"tests,omitempty" hujson:"Tests,omitempty"`
206+
ACLs []ACLEntry `json:"acls" hujson:"ACLs,omitempty"`
207+
AutoApprovers *ACLAutoApprovers `json:"autoapprovers,omitempty" hujson:"AutoApprovers,omitempty"`
208+
Groups map[string][]string `json:"groups,omitempty" hujson:"Groups,omitempty"`
209+
Hosts map[string]string `json:"hosts,omitempty" hujson:"Hosts,omitempty"`
210+
TagOwners map[string][]string `json:"tagowners,omitempty" hujson:"TagOwners,omitempty"`
211+
DERPMap *ACLDERPMap `json:"derpMap,omitempty" hujson:"DerpMap,omitempty"`
212+
Tests []ACLTest `json:"tests,omitempty" hujson:"Tests,omitempty"`
213+
}
214+
215+
type ACLAutoApprovers struct {
216+
Routes map[string][]string `json:"routes" hujson:"Routes"`
217+
ExitNode []string `json:"exitNode" hujson:"ExitNode"`
212218
}
213219

214220
type ACLEntry struct {

0 commit comments

Comments
 (0)