client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenID      = "cbc36478b0bd8e67e89469c7749d4127"
	AccessToken  = "cbc36478b0bd8e67e89469c7749d4127"
	RefreshToken = "tbc36478b0bd8e67e89469c7749d4127"
	Username     = "username"
	Password     = "password"
	RegionID     = 1
	ProjectID    = 1
)

Fake token to use.

Variables

This section is empty.

Functions

func ServiceAuthClient

func ServiceAuthClient(name string, version string) *edgecloud.ServiceClient

func ServiceClient

func ServiceClient() *edgecloud.ServiceClient

ServiceClient returns a generic service client for use in tests.

func ServiceTokenClient

func ServiceTokenClient(name string, version string) *edgecloud.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