Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { ID int `db:"id"` Name string `db:"name"` WorkflowID string `db:"workflow_id"` RunID string `db:"run_id"` AIPID uuid.NullUUID `db:"aip_id"` // Nullable. LocationID uuid.NullUUID `db:"location_id"` // Nullable. Status enums.PackageStatus `db:"status"` // It defaults to CURRENT_TIMESTAMP(6) so populated as soon as possible. CreatedAt time.Time `db:"created_at"` // Nullable, populated as soon as processing starts. StartedAt sql.NullTime `db:"started_at"` // Nullable, populated as soon as ingest completes. CompletedAt sql.NullTime `db:"completed_at"` }
Package represents a package in the package table.
func (*Package) Goa ¶
func (p *Package) Goa() *goapackage.EnduroStoredPackage
Goa returns the API representation of the package.
type PreservationAction ¶
type PreservationAction struct { ID int `db:"id"` WorkflowID string `db:"workflow_id"` Type enums.PreservationActionType `db:"type"` Status enums.PreservationActionStatus `db:"status"` StartedAt sql.NullTime `db:"started_at"` CompletedAt sql.NullTime `db:"completed_at"` PackageID int `db:"package_id"` }
PreservationAction represents a preservation action in the preservation_action table.
type PreservationTask ¶
type PreservationTask struct { ID int `db:"id"` TaskID string `db:"task_id"` Name string `db:"name"` Status enums.PreservationTaskStatus `db:"status"` StartedAt sql.NullTime `db:"started_at"` CompletedAt sql.NullTime `db:"completed_at"` Note string `db:"note"` PreservationActionID int `db:"preservation_action_id"` }
PreservationTask represents a preservation action task in the preservation_task table.
Click to show internal directories.
Click to hide internal directories.