blob: 3d3c7f2924a7b68c70842f72795e42c931464e18 [file] [log] [blame]
jrperrittc8834c12016-08-03 16:06:16 -05001package trusts
2
3import "github.com/gophercloud/gophercloud/openstack/identity/v3/tokens"
4
5type TrusteeUser struct {
6 ID string `json:"id"`
7}
8
9type TrustorUser struct {
10 ID string `json:"id"`
11}
12
13type 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
22type Token struct {
23 tokens.Token
24 Trust Trust `json:"OS-TRUST:trust"`
25}
26
27type TokenExt struct {
28 Token Token `json:"token"`
29}