File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ type ACL struct {
7474 Postures map [string ][]string `json:"postures,omitempty" hujson:"Postures,omitempty"`
7575 DefaultSourcePosture []string `json:"defaultSrcPosture,omitempty" hujson:"DefaultSrcPosture,omitempty"`
7676
77+ AttrConfig map [string ]* ACLAttrConfig `json:"attrConfig,omitempty" hujson:"AttrConfig,omitempty"`
78+
7779 // ETag is the etag corresponding to this version of the ACL
7880 ETag string `json:"-"`
7981}
@@ -159,6 +161,12 @@ type NodeAttrGrantApp struct {
159161 Domains []string `json:"domains,omitempty" hujson:"Domains,omitempty"`
160162}
161163
164+ type ACLAttrConfig struct {
165+ Type string `json:"type,omitempty" hujson:"Type,omitempty"`
166+ AllowSetByNode bool `json:"allowSetByNode,omitempty" hujson:"AllowSetByNode,omitempty"`
167+ BroadcastToPeers []string `json:"broadcastToPeers,omitempty" hujson:"BroadcastToPeers,omitempty"`
168+ }
169+
162170// Get retrieves the [ACL] that is currently set for the tailnet.
163171func (pr * PolicyFileResource ) Get (ctx context.Context ) (* ACL , error ) {
164172 req , err := pr .buildRequest (ctx , http .MethodGet , pr .buildTailnetURL ("acl" ))
You can’t perform that action at this time.
0 commit comments