WithOwner adds an OwnerID to the resource
(ownerID string)
| 202 | |
| 203 | // WithOwner adds an OwnerID to the resource |
| 204 | func (z Object) WithOwner(ownerID string) Object { |
| 205 | return Object{ |
| 206 | ID: z.ID, |
| 207 | Owner: ownerID, |
| 208 | OrgID: z.OrgID, |
| 209 | Type: z.Type, |
| 210 | ACLUserList: z.ACLUserList, |
| 211 | ACLGroupList: z.ACLGroupList, |
| 212 | AnyOrgOwner: z.AnyOrgOwner, |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // WithACLUserList adds an ACL list to a given object |
| 217 | func (z Object) WithACLUserList(acl map[string][]policy.Action) Object { |
no outgoing calls