doi

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataciteProvider

type DataciteProvider struct {
	Name    string
	Verbose int
}

DataciteProvider represents Datacite provider

func (*DataciteProvider) Init

func (d *DataciteProvider) Init()

Init function initializes Datacite publisher

func (*DataciteProvider) MakePublic added in v0.7.4

func (d *DataciteProvider) MakePublic(doi string) error

MakePublic provides publication of draft DOI

func (*DataciteProvider) Publish

func (d *DataciteProvider) Publish(authors []string, did, description string, record map[string]any, publish bool) (string, string, error)

Publish provides publication of dataset with did and description

type MCProvider

type MCProvider struct {
	ProjectName string
	Verbose     int
}

MCProvider represents Material Commons provider

func (*MCProvider) Init

func (m *MCProvider) Init()

Init function initializes MaterialsCommons publisher

func (*MCProvider) MakePublic added in v0.7.4

func (m *MCProvider) MakePublic(doi string) error

MakePublic provides publication of draft DOI

func (*MCProvider) Publish

func (m *MCProvider) Publish(authors []string, did, description string, record map[string]any, publish bool) (string, string, error)

Publish provides publication of dataset with did and description

type Provider

type Provider interface {
	Publish(did, description string, record map[string]any, publish bool) (string, string, error)
	MakePublic(doi string) error
}

Provider represents generic DOI interface

type ZenodoProvider

type ZenodoProvider struct {
	Verbose int
}

ZenodoProvider represents Zenodo provider

func (*ZenodoProvider) Init

func (z *ZenodoProvider) Init()

Init function initializes Zenodo provider

func (*ZenodoProvider) MakePublic added in v0.7.4

func (m *ZenodoProvider) MakePublic(doi string) error

MakePublic provides publication of draft DOI

func (*ZenodoProvider) Publish

func (z *ZenodoProvider) Publish(authors []string, did, description string, record map[string]any, publish bool) (string, string, error)

Publish provides publication of dataset with did and description

Jump to

Keyboard shortcuts

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