Documentation
¶
Index ¶
- func NewDatabase() (databases.Database, error)
- type CreditAssociation
- type DataObject
- type Database
- func (db Database) Descriptors(orcid string, fileIds []string) ([]map[string]any, error)
- func (db *Database) Finalize(orcid string, id uuid.UUID) error
- func (db *Database) Load(state databases.DatabaseSaveState) error
- func (db Database) LocalUser(orcid string) (string, error)
- func (db Database) Save() (databases.DatabaseSaveState, error)
- func (db *Database) Search(orcid string, params databases.SearchParameters) (databases.SearchResults, error)
- func (db Database) SpecificSearchParameters() map[string]any
- func (db Database) StageFiles(orcid string, fileIds []string) (uuid.UUID, error)
- func (db Database) StagingStatus(id uuid.UUID) (databases.StagingStatus, error)
- type Doi
- type PersonValue
- type Study
- type WorkflowExecution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
Types ¶
type CreditAssociation ¶
type CreditAssociation struct { Roles []string `json:"applied_roles"` Person PersonValue `json:"applies_to_person"` Type string `json:"type,omitempty"` }
https://microbiomedata.github.io/nmdc-schema/CreditAssociation/
type DataObject ¶
type DataObject struct { FileSizeBytes int `json:"file_size_bytes"` MD5Checksum string `json:"md5_checksum"` DataObjectType string `json:"data_object_type"` CompressionType string `json:"compression_type"` URL string `json:"url"` Type string `json:"type"` Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` WasGeneratedBy string `json:"was_generated_by"` AlternativeIdentifiers []string `json:"alternative_identifiers,omitempty"` }
data object type for JSON marshalling (see https://microbiomedata.github.io/nmdc-schema/DataObject/)
type Database ¶
type Database struct { // HTTP client that caches queries Client http.Client // authorization info Auth authorization // mapping of host URLs to endpoints EndpointForHost map[string]string }
file database appropriate for handling searches and transfers (implements the databases.Database interface)
func (Database) Descriptors ¶
func (*Database) Search ¶
func (db *Database) Search(orcid string, params databases.SearchParameters) (databases.SearchResults, error)
func (Database) SpecificSearchParameters ¶
func (Database) StageFiles ¶
func (Database) StagingStatus ¶
type Doi ¶
type PersonValue ¶
type Study ¶
type Study struct { Id string `json:"id"` AlternativeNames []string `json:"alternative_names,omitempty"` AlternativeTitles []string `json:"alternative_titles,omitempty"` AssociatedDois []Doi `json:"associated_dois,omitempty"` Description string `json:"description,omitempty"` FundingSources []string `json:"funding_sources,omitempty"` CreditAssociations []CreditAssociation `json:"has_credit_associations,omitempty"` Name string `json:"name,omitempty"` RelatedIdentifiers string `json:"related_identifiers,omitempty"` Title string `json:"title,omitempty"` }
type WorkflowExecution ¶
type WorkflowExecution struct { Id string `json:"id"` Name string `json:"name"` Studies []Study `json:"studies"` Biosamples []any `json:"biosamples"` }
https://microbiomedata.github.io/nmdc-schema/WorkflowExecution/
Click to show internal directories.
Click to hide internal directories.