Documentation
¶
Index ¶
- Variables
- type App
- func (a *App) BeforeSave(tx *pop.Connection) error
- func (a *App) Secret() (string, error)
- func (a App) String() string
- func (a *App) Validate(tx *pop.Connection) (*validate.Errors, error)
- func (a *App) ValidateSave(tx *pop.Connection) (*validate.Errors, error)
- func (a *App) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
- type Apps
- type Build
- type Builds
- type FTLPlatformType
- type StepInfo
- type TestReport
- type TestReportAsset
- type TestReportAssets
Constants ¶
This section is empty.
Variables ¶
var DB *pop.Connection
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) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*App) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*App) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required 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) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*Build) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*Build) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required 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) 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 ...