Function
applyGroupGate
(policyAtt *v1.PolicyAttachment, groupAtt *v1.PolicyGroupAttachment)
Source from the content-addressed store, hash-verified
| 221 | } |
| 222 | |
| 223 | func applyGroupGate(policyAtt *v1.PolicyAttachment, groupAtt *v1.PolicyGroupAttachment) *v1.PolicyAttachment { |
| 224 | if policyAtt == nil || groupAtt == nil || groupAtt.Gate == nil { |
| 225 | return policyAtt |
| 226 | } |
| 227 | |
| 228 | cloned := proto.Clone(policyAtt).(*v1.PolicyAttachment) |
| 229 | groupGate := groupAtt.GetGate() |
| 230 | cloned.Gate = &groupGate |
| 231 | |
| 232 | return cloned |
| 233 | } |
| 234 | |
| 235 | type LoadPolicyGroupOptions struct { |
| 236 | Client v13.AttestationServiceClient |