client

package
v0.4.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL