doc.go 516 B

123456789101112131415161718192021222324252627
  1. /*
  2. Package trusts enables management of OpenStack Identity Trusts.
  3. Example to Create a Token with Username, Password, and Trust ID
  4. var trustToken struct {
  5. tokens.Token
  6. trusts.TokenExt
  7. }
  8. authOptions := tokens.AuthOptions{
  9. UserID: "username",
  10. Password: "password",
  11. }
  12. createOpts := trusts.AuthOptsExt{
  13. AuthOptionsBuilder: authOptions,
  14. TrustID: "de0945a",
  15. }
  16. err := tokens.Create(identityClient, createOpts).ExtractInto(&trustToken)
  17. if err != nil {
  18. panic(err)
  19. }
  20. */
  21. package trusts