Versions in this module Expand all Collapse all v0 v0.4.0 Oct 30, 2021 v0.3.0 May 13, 2021 Changes in this version type Client + func (c *Client) DepositionFilesDeleteAll(ctx context.Context, id string) error v0.2.0 Apr 5, 2021 Changes in this version + const BaseURL + const SandboxBaseURL + type Client struct + func NewClient(c *http.Client, base, token string) *Client + func (c *Client) DepositionCreate(ctx context.Context) (*Deposition, error) + func (c *Client) DepositionFilesCreate(ctx context.Context, id, filename, mimetype string, r io.Reader) (*DepositionFile, error) + func (c *Client) DepositionFilesDelete(ctx context.Context, did, fid string) error + func (c *Client) DepositionFilesList(ctx context.Context, id string) ([]*DepositionFile, error) + func (c *Client) DepositionNewVersion(ctx context.Context, id string) (string, error) + func (c *Client) DepositionPublish(ctx context.Context, id string) (*Deposition, error) + func (c *Client) DepositionRetrieve(ctx context.Context, id string) (*Deposition, error) + func (c *Client) DepositionUpdate(ctx context.Context, id string, meta *DepositionMetadata) (*Deposition, error) + type Community struct + Identifier string + type Creator struct + Affiliation string + Name string + ORCID string + type Deposition struct + ConceptDOI string + ConceptRecordID string + Created *time.Time + DOI string + DOIURL string + Files []*DepositionFile + ID int + Links map[string]string + Metadata *DepositionMetadata + Modified *time.Time + Owner int + RecordID int + State string + Submitted bool + Title string + type DepositionFile struct + Checksum string + Filename string + Filesize int + ID string + Links map[string]string + type DepositionMetadata struct + AccessRight string + Communities []*Community + Creators []*Creator + DOI string + Description string + License string + PrereserveDOI *PrereserveDOI + PublicationDate string + References []string + RelatedIdentifiers []*RelatedIdentifier + Title string + UploadType string + Version string + type PrereserveDOI struct + DOI string + RecordID int + type RelatedIdentifier struct + Identifier string + Relation string + Scheme string