cmd

package
v0.0.0-...-1b3179e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFs embed.FS

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

type MCDataRecord

type MCDataRecord struct {
	Status string             `json:"status"`
	Data   []MaterialsCommons `json:"data"`
}

MetaDataRecord represents MetaData record returned by discovery service

type MCResponse

type MCResponse struct {
	Data []map[string]any `json:"data"`
}

MCResponse represents HTTP response from Material Commons API

type MLInput

type MLInput struct {
	Model   string `json:"model"`
	Type    string `json:"type"`
	Backend string `json:"backend"`
	File    string `json:"file",omitempty`
	Version string `json:"version",omitempty`
}

MLInput represents input for predict API

type MapRecord

type MapRecord map[string]any

type MaterialsCommons

type MaterialsCommons struct {
	ID          string   `json:"id"`
	Site        string   `json:"site"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	Bucket      string   `json:"bucket"`
}

helper function to get metadata MaterialsCommons represents MaterialsCommons object returned from discovery service

type MetaData

type MetaData struct {
	ID          string   `json:"id"`
	Site        string   `json:"site"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	Bucket      string   `json:"bucket"`
}

helper function to get metadata MetaData represents MetaData object returned from discovery service

type MetaDataRecord

type MetaDataRecord struct {
	Status string     `json:"status"`
	Data   []MetaData `json:"data"`
}

MetaDataRecord represents MetaData record returned by discovery service

type PublishRecord

type PublishRecord struct {
	MetaData zenodo.MetaDataRecord `json:"metadata"`
	//     Files    []zenodo.File         `json:"files"`
	Files any `json:"files,omitempty"`
}

PublishRecord describes publicatin record

func (*PublishRecord) Validate

func (r *PublishRecord) Validate() error

Validate provides validation of our publish record

type ResponseRecord

type ResponseRecord struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

ResponseRecord represents MetaData record returned by discovery service

type SpecScans

type SpecScans struct {
	ID          string   `json:"id"`
	Site        string   `json:"site"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	Bucket      string   `json:"bucket"`
}

helper function to get specdata SpecScans represents SpecScans object returned from discovery service

type SpecScansRecord

type SpecScansRecord struct {
	Status string      `json:"status"`
	Data   []SpecScans `json:"data"`
}

SpecScansRecord represents SpecScans record returned by discovery service

type StorageRecord

type StorageRecord struct {
	Status string `json:"status"`
	Data   any    `json:"data"`
}

StorageRecord represents Storage record returned by datamanagement service

type UploadRecord

type UploadRecord struct {
	Status string `json:"status"`
	Error  string `json:"error"`
	Msg    string `json:"msg"`
	Object any    `json:"object"`
}

UploadRecord represents Storage record returned by datamanagement service

type UrlParams

type UrlParams struct {
	Did         string `url:"did"`
	File        string `url:"file"`
	Script      string `url:"script"`
	Environment string `url:"environment"`
	Package     string `url:"package"`
	Site        string `url:"site"`
	Bucket      string `url:"bucket"`
	Processing  string `url:"processing"`
	Osname      string `url:"osname"`
}

UrlParams represents all possible parameters we can pass to datasets query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL