firebaseutils

package
v0.0.0-...-569970b Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DevicesCatalog ...

Functions

func CancelTestMatrix

func CancelTestMatrix(matrixID string) (string, error)

CancelTestMatrix ...

func GetDeviceNameByID

func GetDeviceNameByID(id string) string

GetDeviceNameByID ...

func GetLangByCountryCode

func GetLangByCountryCode(countryCode string) string

GetLangByCountryCode ...

func ValidateAndroidDevices

func ValidateAndroidDevices(devices []*testing.AndroidDevice) error

ValidateAndroidDevices ...

func ValidateIosDevices

func ValidateIosDevices(devices []*testing.IosDevice) error

ValidateIosDevices ...

Types

type APIModel

type APIModel struct {
	JWT *configs.JWTModel
}

APIModel ...

func New

func New() (*APIModel, error)

New ...

func (*APIModel) DownloadTestAssets

func (api *APIModel) DownloadTestAssets(buildSlug string) (map[string]string, error)

DownloadTestAssets ...

func (*APIModel) DownloadURLforPath

func (api *APIModel) DownloadURLforPath(path string) (string, error)

DownloadURLforPath ...

func (*APIModel) GetDeviceCatalog

func (api *APIModel) GetDeviceCatalog() (*testing.TestEnvironmentCatalog, error)

GetDeviceCatalog ...

func (*APIModel) GetHistoryAndExecutionIDByMatrixID

func (api *APIModel) GetHistoryAndExecutionIDByMatrixID(id string) (*testing.TestMatrix, error)

GetHistoryAndExecutionIDByMatrixID ...

func (*APIModel) GetProfileName

func (api *APIModel) GetProfileName() string

GetProfileName ...

func (*APIModel) GetSignedURLCredentials

func (api *APIModel) GetSignedURLCredentials(method string) *storagesu.SignedURLOptions

GetSignedURLCredentials ...

func (*APIModel) GetSignedURLOfLegacyBucketPath

func (api *APIModel) GetSignedURLOfLegacyBucketPath(path string) (string, error)

GetSignedURLOfLegacyBucketPath ...

func (*APIModel) GetTagArray

func (api *APIModel) GetTagArray() []string

GetTagArray ...

func (*APIModel) GetTestMetricSamples

func (api *APIModel) GetTestMetricSamples(historyID, executionID, stepID, appSlug, buildSlug string) (MetricSampleModel, error)

GetTestMetricSamples ...

func (*APIModel) GetTestResultXMLDownloadURLs

func (api *APIModel) GetTestResultXMLDownloadURLs(ctx context.Context, buildSlug, gcsBucket string) (map[string]string, error)

GetTestResultXMLDownloadURLs ...

func (*APIModel) GetTestsByHistoryAndExecutionID

func (api *APIModel) GetTestsByHistoryAndExecutionID(historyID, executionID, appSlug, buildSlug string, fields ...googleapi.Field) (*toolresults.ListStepsResponse, error)

GetTestsByHistoryAndExecutionID ...

func (*APIModel) StartTestMatrix

func (api *APIModel) StartTestMatrix(appSlug, buildSlug string, testMatrix *testing.TestMatrix) (*testing.TestMatrix, error)

StartTestMatrix ...

func (*APIModel) TestAssetsUploadURLsAndroid

func (api *APIModel) TestAssetsUploadURLsAndroid(buildSlug string, assetRequests TestAssetsAndroid) (TestAssetsAndroid, error)

TestAssetsUploadURLsAndroid returns a signed URLs used to Android upload asset

func (*APIModel) UploadTestAssets

func (api *APIModel) UploadTestAssets(buildSlug string) (*UploadURLRequest, error)

UploadTestAssets ...

func (*APIModel) UploadURLforPath

func (api *APIModel) UploadURLforPath(path string) (string, error)

UploadURLforPath ...

type MetricSampleModel

type MetricSampleModel struct {
	CPU         map[string]float64 `json:"cpu_samples"`
	RAM         map[string]float64 `json:"ram_samples"`
	NetworkDown map[string]float64 `json:"nwd_samples"`
	NetworkUp   map[string]float64 `json:"nwu_samples"`
}

MetricSampleModel ...

type TestAsset

type TestAsset struct {
	UploadURL string `json:"uploadUrl"`
	GcsPath   string `json:"gcsPath"`
	Filename  string `json:"filename"`
}

TestAsset describes a requested test asset

type TestAssetsAndroid

type TestAssetsAndroid struct {
	Apk        TestAsset   `json:"apk,omitempty"`
	Aab        TestAsset   `json:"aab,omitmepty"`
	TestApk    TestAsset   `json:"testApk,omitempty"`
	RoboScript TestAsset   `json:"roboScript,omitempty"`
	ObbFiles   []TestAsset `json:"obbFiles,omitempty"`
}

TestAssetsAndroid describes needed Android test asset and is used to return Android test asset upload URLs

type UploadURLRequest

type UploadURLRequest struct {
	AppURL     string `json:"appUrl,omitempty"`
	TestAppURL string `json:"testAppUrl,omitempty"`
}

UploadURLRequest ...

Jump to

Keyboard shortcuts

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