results.go 794 B

12345678910111213141516171819202122232425262728
  1. package trusts
  2. // TrusteeUser represents the trusted user ID of a trust.
  3. type TrusteeUser struct {
  4. ID string `json:"id"`
  5. }
  6. // TrustorUser represents the trusting user ID of a trust.
  7. type TrustorUser struct {
  8. ID string `json:"id"`
  9. }
  10. // Trust represents a delegated authorization request between two
  11. // identities.
  12. type Trust struct {
  13. ID string `json:"id"`
  14. Impersonation bool `json:"impersonation"`
  15. TrusteeUser TrusteeUser `json:"trustee_user"`
  16. TrustorUser TrustorUser `json:"trustor_user"`
  17. RedelegatedTrustID string `json:"redelegated_trust_id"`
  18. RedelegationCount int `json:"redelegation_count"`
  19. }
  20. // TokenExt represents an extension of the base token result.
  21. type TokenExt struct {
  22. Trust Trust `json:"OS-TRUST:trust"`
  23. }