models

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

Documentation

Index

Constants

This section is empty.

Variables

DB ...

Functions

This section is empty.

Types

type App

type App struct {
	ID                uuid.UUID `json:"id" db:"id"`
	CreatedAt         time.Time `json:"created_at" db:"created_at"`
	UpdatedAt         time.Time `json:"updated_at" db:"updated_at"`
	Plan              string    `json:"plan" db:"plan"`
	EncryptedSecret   []byte    `json:"-" db:"encrypted_secret"`
	EncryptedSecretIV []byte    `json:"-" db:"encrypted_secret_iv"`
	AppSlug           string    `json:"app_slug" db:"app_slug"`
	BitriseAPIToken   string    `json:"-" db:"bitrise_api_token"` // to have authentication when making requests to Bitrise API
	APIToken          string    `json:"api_token" db:"api_token"` // to authenticate incoming requests from running builds
}

App ...

func (*App) BeforeSave

func (a *App) BeforeSave(tx *pop.Connection) error

BeforeSave ...

func (*App) Secret

func (a *App) Secret() (string, error)

Secret ...

func (App) String

func (a App) String() string

String is not required by pop and may be deleted

func (*App) Validate

func (a *App) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.

func (*App) ValidateSave

func (a *App) ValidateSave(tx *pop.Connection) (*validate.Errors, error)

ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.

func (*App) ValidateUpdate

func (a *App) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.

type Apps

type Apps []App

Apps is not required by pop and may be deleted

func (Apps) String

func (a Apps) String() string

String is not required by pop and may be deleted

type Build

type Build struct {
	ID                  uuid.UUID  `json:"id" db:"id"`
	CreatedAt           time.Time  `json:"created_at" db:"created_at"`
	UpdatedAt           time.Time  `json:"updated_at" db:"updated_at"`
	AppSlug             string     `json:"app_slug" db:"app_slug"`
	BuildSlug           string     `json:"build_slug" db:"build_slug"`
	BuildSessionEnabled bool       `json:"build_session_enabled" db:"build_session_enabled"`
	TestStartTime       nulls.Time `json:"test_start_time" db:"test_start_time"`
	TestEndTime         nulls.Time `json:"test_end_time" db:"test_end_time"`
	TestMatrixID        string     `json:"test_matrix_id" db:"test_matrix_id"`
	TestHistoryID       string     `json:"test_history_id" db:"test_history_id"`
	TestExecutionID     string     `json:"test_execution_id" db:"test_execution_id"`
	LastRequest         nulls.Time `json:"last_request" db:"last_request"`
}

Build ...

func (Build) String

func (b Build) String() string

String is not required by pop and may be deleted

func (*Build) Validate

func (b *Build) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.

func (*Build) ValidateSave

func (b *Build) ValidateSave(tx *pop.Connection) (*validate.Errors, error)

ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.

func (*Build) ValidateUpdate

func (b *Build) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.

type Builds

type Builds []Build

Builds is not required by pop and may be deleted

func (Builds) String

func (b Builds) String() string

String is not required by pop and may be deleted

type FTLPlatformType

type FTLPlatformType string

FTLPlatformType ...

const (
	// FTLPlatformTypeIOS ...
	FTLPlatformTypeIOS FTLPlatformType = "FTLPlatformTypeIOS"
	// FTLPlatformTypeAndroid ...
	FTLPlatformTypeAndroid FTLPlatformType = "FTLPlatformTypeAndroid"
)

type StepInfo

type StepInfo struct {
	ID      string `json:"id"`
	Version string `json:"version"`
	Title   string `json:"title"`
	Number  int    `json:"number"`
}

StepInfo ...

type TestReport

type TestReport struct {
	ID               uuid.UUID        `json:"id" db:"id"`
	Name             string           `json:"name" db:"name"`
	Filename         string           `json:"filename" db:"filename"`
	Filesize         int              `json:"filesize" db:"filesize"`
	Step             json.RawMessage  `json:"step" db:"step"`
	Uploaded         bool             `json:"uploaded" db:"uploaded"`
	AppSlug          string           `json:"app_slug" db:"app_slug"`
	BuildSlug        string           `json:"build_slug" db:"build_slug"`
	CreatedAt        time.Time        `json:"created_at" db:"created_at"`
	UpdatedAt        time.Time        `json:"-" db:"updated_at"`
	TestReportAssets TestReportAssets `has_many:"test_report_assets" json:"assets" db:"-"`
}

TestReport ...

func (*TestReport) PathInBucket

func (t *TestReport) PathInBucket() string

PathInBucket ...

func (*TestReport) UnmarshalStepInfo

func (t *TestReport) UnmarshalStepInfo() (StepInfo, error)

UnmarshalStepInfo ...

func (*TestReport) Validate

func (t *TestReport) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate ...

type TestReportAsset

type TestReportAsset struct {
	ID           uuid.UUID  `json:"id" db:"id"`
	Filename     string     `json:"filename" db:"filename"`
	Filesize     int        `json:"filesize" db:"filesize"`
	Uploaded     bool       `json:"uploaded" db:"uploaded"`
	TestReport   TestReport `belongs_to:"test_report" json:"-" db:"-"`
	TestReportID uuid.UUID  `json:"test_report_id" db:"test_report_id"`
	CreatedAt    time.Time  `json:"created_at" db:"created_at"`
	UpdatedAt    time.Time  `json:"updated_at" db:"updated_at"`
}

TestReportAsset ...

func (*TestReportAsset) PathInBucket

func (t *TestReportAsset) PathInBucket() string

PathInBucket ...

func (*TestReportAsset) Validate

func (t *TestReportAsset) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate ...

type TestReportAssets

type TestReportAssets []TestReportAsset

TestReportAssets ...

Jump to

Keyboard shortcuts

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