package
0.0.0-20240513174111-a311b3bdd62a
Repository: https://github.com/aptrust/registry.git
Documentation: pkg.go.dev

# Functions

ChecksumCreate creates a new Checksum.
ChecksumFromJson returns the Checksum from the JSON in the request body and the existing file record from the database (if there is one).
CoerceFileStorageOption forces submittedFile.StorageOption to match existingFile.StorageOption if existingFile.State is Active.
CoerceObjectStorageOption forces submittedObject.StorageOption to match existingObject.StorageOption if existingObject.State is Active.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeletionRequestShow shows the deletion request with the specified id.
GenericFileCreate creates a new GenericFile.
GenericFileCreateBatch creates a batch of now GenericFiles and also saves their related records (PremisEvents, Checksums, and StorageRecords).
GenericFileDelete marks a generic file record as deleted.
GenericFileFromJson returns the GenericFile from the JSON in the request body and the existing file record from the database (if there is one).
GenericFileIndex shows list of files.
GenericFileUpdate updates an existing GenericFile.
InstitutionIndex shows list of institutions.
InstitutionShow returns the institution with the specified id.
IntellectualObjectCreate creates a new object record.
IntellectualObjectDelete marks an object record as deleted.
IntellectualObjectFromJson returns the IntellectualObject from the JSON in the request body and the existing object record from the database (if there is one).
IntellectualObjectInitBatchDelete creates an deletion request for multiple objects.
IntellectualObjectInitRestore creates an object restoration request, which is really just a WorkItem that gets queued.
IntellectualObjectUpdate updates an existing intellectual object record.
PremisEventCreate creates a new Premis Event.
PrepareFileDelete is not implemented, except in test and integration builds.
PrepareObjectDelete is not implemented, except in test and integration builds.
StorageRecordCreate creates a new StorageRecord.
StorageRecordFromJson returns the StorageRecord from the JSON in the request body and the existing file record from the database (if there is one).
StorageRecordIndex shows list of objects.
StorageRecordShow returns the object with the specified id.
No description provided by the author
WorkItemCreate creates a new WorkItem.
WorkItemFromJson returns the WorkItem from the JSON in the request body and the existing file record from the database (if there is one).
WorkItemRedisDelete deletes a WorkItem's Redis record.
WorkItemRequeue requeues a WorkItem to the specified stage.
WorkItemUpdate updates an existing WorkItem record.

# Structs

ObjectBatchDeleteParams contains info about which objects to delete in an object batch delete operation.