Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DescriptorMigration ¶
Schema v0002 introduces the concept of extended_descriptor, which is defined as follows:
type ExtendedDescriptor struct { JobDescriptor TestStepsDescriptors []test.TestStepsDescriptors }
We remove TestDescriptors from Request objects, and we store that information side-by-side with JobDescriptor into an ExtendedDescriptor. We then store this ExtendedDescriptor in the jobs table so that all the test information can be re-fetched by reading extended_descriptor field in jobs table, without any dependency after submission time on the test fetcher.
func (*DescriptorMigration) Down ¶
func (m *DescriptorMigration) Down(tx *sql.Tx) error
Down implements the down migration of DescriptorMigration
func (*DescriptorMigration) DownNoTx ¶
func (m *DescriptorMigration) DownNoTx(db *sql.DB) error
DownNoTx implements the down migration of DescriptorMigration in a non-transactional manner
type Request ¶
type Request struct { JobID types.JobID JobName string Requestor string ServerID string RequestTime time.Time JobDescriptor string // TestDescriptors are the fetched test steps as per the test fetcher // defined in the JobDescriptor above. TestDescriptors string }
Request represent the v1 job request layout
Click to show internal directories.
Click to hide internal directories.