jrperritt | c8834c1 | 2016-08-03 16:06:16 -0500 | [diff] [blame^] | 1 | package trusts |
| 2 | |
| 3 | import "github.com/gophercloud/gophercloud/openstack/identity/v3/tokens" |
| 4 | |
| 5 | type TrusteeUser struct { |
| 6 | ID string `json:"id"` |
| 7 | } |
| 8 | |
| 9 | type TrustorUser struct { |
| 10 | ID string `json:"id"` |
| 11 | } |
| 12 | |
| 13 | type Trust struct { |
| 14 | ID string `json:"id"` |
| 15 | Impersonation bool `json:"impersonation"` |
| 16 | TrusteeUser TrusteeUser `json:"trustee_user"` |
| 17 | TrustorUser TrustorUser `json:"trustor_user"` |
| 18 | RedelegatedTrustID string `json:"redelegated_trust_id"` |
| 19 | RedelegationCount int `json:"redelegation_count"` |
| 20 | } |
| 21 | |
| 22 | type Token struct { |
| 23 | tokens.Token |
| 24 | Trust Trust `json:"OS-TRUST:trust"` |
| 25 | } |
| 26 | |
| 27 | type TokenExt struct { |
| 28 | Token Token `json:"token"` |
| 29 | } |