zenodo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package zenodo publishes a software citation to Zenodo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(ctx context.Context, cfg Config, opts ...Option) (o zenodo.Deposition, err error)

Publish publishes a release to Zenodo and returns the new deposition.

Types

type Config

type Config struct {
	DOI string // Concept DOI to publish under

	Repo cite.Repository // repository to cite
	Tag  string          // release tag, eg: "v0.1.0"
	// contains filtered or unexported fields
}

type Option

type Option func(c *Config) error

Option configures a Zenodo citation and deposition process.

func WithForgejo

func WithForgejo(ep string) Option

WithForgejo specifies the Forgejo endpoint to use.

func WithZenodo

func WithZenodo(ep string) Option

WithZenodo specifies the Zenodo endpoint to use.

func WithZenodoAuth

func WithZenodoAuth(token string) Option

WithZenodoAuth specifies an authentication token for the Zenodo client.

Jump to

Keyboard shortcuts

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