Documentation
¶
Index ¶
- func NewDatabase() (databases.Database, error)
- type DataGeneration
- type DataObject
- type Database
- func (db *Database) Load(state databases.DatabaseSaveState) error
- func (db Database) LocalUser(orcid string) (string, error)
- func (db Database) Resources(orcid string, fileIds []string) ([]frictionless.DataResource, 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]interface{}
- func (db Database) StageFiles(orcid string, fileIds []string) (uuid.UUID, error)
- func (db Database) StagingStatus(id uuid.UUID) (databases.StagingStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
Types ¶
type DataGeneration ¶
type DataGeneration struct {
AssociatedStudies []string
}
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 DataGeneration `json:"was_informed_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) Resources ¶
func (db Database) Resources(orcid string, fileIds []string) ([]frictionless.DataResource, error)
func (*Database) Search ¶
func (db *Database) Search(orcid string, params databases.SearchParameters) (databases.SearchResults, error)
func (Database) SpecificSearchParameters ¶
func (Database) StageFiles ¶
func (Database) StagingStatus ¶
Click to show internal directories.
Click to hide internal directories.