github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3/extensions/trusts/doc.go (about)

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