helpers

package
v0.0.0-...-6939923 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZENODO_API = "https://zenodo.org/api/"
)

Variables

This section is empty.

Functions

func ReleaseDataset

func ReleaseDataset()

func Run

func Run(name string, args ...string)

Run system commands

func WriteToCsv

func WriteToCsv(keys []string, values []string, fpath string)

Write to CSV, use models.getkeys and .values with a filepath

Types

type Creator

type Creator struct {
	Name string `json:"name"`
}

type DatasetInfo

type DatasetInfo struct {
	Date string `json:"date"`
	Url  string `json:"url"`
}

type DatasetStruct

type DatasetStruct struct {
	Managers []string      `json:"managers"`
	Datasets []DatasetInfo `json:"datasets"`
}

type ZENODOResponse

type ZENODOResponse struct {
	BucketURL  string `njson:"links.bucket"`
	DiscardURL string `njson:"links.discard"`
	PublishURL string `njson:"links.publish"`
	WebURL     string `njson:"links.latest_html"`
}

type ZenodoDeposition

type ZenodoDeposition struct {
	Title       string    `json:"title"`
	UploadType  string    `json:"upload_type"`
	Description string    `json:"description"`
	Creators    []Creator `json:"creators"`
}

type ZenodoRequestBody

type ZenodoRequestBody struct {
	Metadata ZenodoDeposition `json:"metadata"`
}

Jump to

Keyboard shortcuts

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