package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Functions
GetIsSuccessful ensures that a GetResult was successful and contains the correct token and User Info.
HandleTokenGet expects a Get against a /tokens handler, ensures that the request body has been constructed properly given certain auth options, and returns the result.
HandleTokenPost expects a POST against a /tokens handler, ensures that the request body has been constructed properly given certain auth options, and returns the result.
IsSuccessful ensures that a CreateResult was successful and contains the correct token and service catalog.
# Constants
TokenCreationResponse is a JSON response that contains ExpectedToken and ExpectedServiceCatalog.
TokenGetResponse is a JSON response that contains ExpectedToken and ExpectedUser.
# Variables
ExpectedServiceCatalog is the service catalog that should be parsed from TokenCreationResponse.
ExpectedToken is the token that should be parsed from TokenCreationResponse.
ExpectedUser is the token that should be parsed from TokenGetResponse.