pubsubsync

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncBigQueryTestReportIfNeeded

func SyncBigQueryTestReportIfNeeded(
	ctx context.Context,
	logger *zap.Logger,
	bitriseApp bitrise.App,
	buildSlug string,
	rd ReportData,
) error

SyncBigQueryTestReportIfNeeded ...

Types

type BigQueryData

type BigQueryData struct {
	ID         uuid.UUID     `json:"id"`
	StartedAt  string        `json:"started_at"`
	ReportType ReportType    `json:"report_type"`
	TestSuites []junit.Suite `json:"suites"`
	BuildSlug  string        `json:"build_slug"`
	AppSlug    string        `json:"app_slug"`
	// contains filtered or unexported fields
}

BigQueryData ...

func (BigQueryData) MarshalJSON

func (e BigQueryData) MarshalJSON() ([]byte, error)

MarshalJSON ...

type DeviceInfo

type DeviceInfo struct {
	Raw         string `json:"raw"`
	Name        string `json:"name"`
	Version     string `json:"version"`
	Locale      string `json:"locale"`
	Orientation string `json:"orientation"`
}

DeviceInfo ...

type FTLReportData

type FTLReportData struct {
	FTLDeviceReportMap map[string][]byte
	FTLPlatformType    models.FTLPlatformType
}

FTLReportData ...

type ReportData

type ReportData struct {
	ID             uuid.UUID
	TestStartedAt  time.Time
	StepReportData *testreportfiller.StepReportData
	FTLReportData  *FTLReportData
}

ReportData ...

func NewReportDataForFTLReport

func NewReportDataForFTLReport(build models.Build, ftlPlatformType models.FTLPlatformType, testReportID uuid.UUID, ftlReportData map[string][]byte) ReportData

NewReportDataForFTLReport ...

func NewReportDataForStepReport

func NewReportDataForStepReport(testStartedAt time.Time, testReportID uuid.UUID, stepReportData *testreportfiller.StepReportData) ReportData

NewReportDataForStepReport ...

type ReportType

type ReportType string

ReportType ...

const (
	// ReportTypeFTL ...
	ReportTypeFTL ReportType = "ftl"
	// ReportTypeStep ...
	ReportTypeStep ReportType = "step"
)

Jump to

Keyboard shortcuts

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