Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient struct {
// contains filtered or unexported fields
}
func NewAuthClient ¶
func NewAuthClient(conf *config.Config) (*AuthClient, error)
NewClient creates a instance of the huawei cloud auth client It's contained in huawei cloud app and provides service through huawei cloud app If AuthUrl is null using default auth url address
func (*AuthClient) GetAuthToken ¶
func (ac *AuthClient) GetAuthToken(ctx context.Context) (string, error)
GetAuthToken gets token from huawei cloud the developer can access the app by using this token
Click to show internal directories.
Click to hide internal directories.