Documentation ¶
Index ¶
Constants ¶
View Source
const AccessToken = "cbc36478b0bd8e67e89469c7749d4127" // nolint
View Source
const Password = "password" // nolint
View Source
const ProjectID = 1 // nolint
View Source
const RefreshToken = "tbc36478b0bd8e67e89469c7749d4127" // nolint
View Source
const RegionID = 1 // nolint
View Source
const TokenID = "cbc36478b0bd8e67e89469c7749d4127" // nolint
Fake token to use.
View Source
const Username = "username" // nolint
Variables ¶
This section is empty.
Functions ¶
func ServiceAuthClient ¶
func ServiceAuthClient(name string, version string) *gcorecloud.ServiceClient
func ServiceClient ¶
func ServiceClient() *gcorecloud.ServiceClient
ServiceClient returns a generic service client for use in tests.
func ServiceTokenClient ¶
func ServiceTokenClient(name string, version string) *gcorecloud.ServiceClient
Types ¶
type AuthResultTest ¶
type AuthResultTest struct {
// contains filtered or unexported fields
}
func NewAuthResultTest ¶
func NewAuthResultTest(accessToken string, refreshToken string) AuthResultTest
func (AuthResultTest) ExtractAccessToken ¶
func (ar AuthResultTest) ExtractAccessToken() (string, error)
func (AuthResultTest) ExtractRefreshToken ¶
func (ar AuthResultTest) ExtractRefreshToken() (string, error)
func (AuthResultTest) ExtractTokensPair ¶
func (ar AuthResultTest) ExtractTokensPair() (string, string, error)
Click to show internal directories.
Click to hide internal directories.