upload

package
v0.0.0-...-e3ecdb0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0, MIT Imports: 12 Imported by: 3 modules, 3 packages

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

View Source
var Add = binding.Bind[*AddArguments, *AddOK](command.MustParse("/upload/add"))
View Source
var List = binding.Bind[*ListArguments, *ListOK](command.MustParse("/upload/list"))
View Source
var Remove = binding.Bind[*RemoveArguments, *RemoveOK](command.MustParse("/upload/remove"))

Remove (/upload/remove) deletes an upload's root→shards index entry on the upload service (subject = the space). It does NOT remove the shard blobs — blob removal is a separate per-digest /blob/remove decision owned by the client's reference accounting. Idempotent: removing an unknown root succeeds. The receipt carries no payload (Unit).

Functions

This section is empty.

Types

type AddArguments

type AddArguments struct {
	Root   cid.Cid   `cborgen:"root" dagjsongen:"root"`
	Shards []cid.Cid `cborgen:"shards" dagjsongen:"shards"`
	Index  *cid.Cid  `cborgen:"index,omitempty" dagjsongen:"index,omitempty"`
}

func (*AddArguments) MarshalCBOR

func (t *AddArguments) MarshalCBOR(w io.Writer) error

func (*AddArguments) MarshalDagJSON

func (t *AddArguments) MarshalDagJSON(w io.Writer) error

func (*AddArguments) UnmarshalCBOR

func (t *AddArguments) UnmarshalCBOR(r io.Reader) (err error)

func (*AddArguments) UnmarshalDagJSON

func (t *AddArguments) UnmarshalDagJSON(r io.Reader) (err error)

type AddOK

type AddOK = commands.Unit

type ListArguments

type ListArguments struct {
	Cursor *string `cborgen:"cursor,omitempty" dagjsongen:"cursor,omitempty"`
	Size   *uint64 `cborgen:"size,omitempty" dagjsongen:"size,omitempty"`
}

func (*ListArguments) MarshalCBOR

func (t *ListArguments) MarshalCBOR(w io.Writer) error

func (*ListArguments) MarshalDagJSON

func (t *ListArguments) MarshalDagJSON(w io.Writer) error

func (*ListArguments) UnmarshalCBOR

func (t *ListArguments) UnmarshalCBOR(r io.Reader) (err error)

func (*ListArguments) UnmarshalDagJSON

func (t *ListArguments) UnmarshalDagJSON(r io.Reader) (err error)

type ListOK

type ListOK struct {
	Cursor  *string          `cborgen:"cursor,omitempty" dagjsongen:"cursor,omitempty"`
	Size    uint64           `cborgen:"size" dagjsongen:"size"`
	Results []ListUploadItem `cborgen:"results" dagjsongen:"results"`
}

func (*ListOK) MarshalCBOR

func (t *ListOK) MarshalCBOR(w io.Writer) error

func (*ListOK) MarshalDagJSON

func (t *ListOK) MarshalDagJSON(w io.Writer) error

func (*ListOK) UnmarshalCBOR

func (t *ListOK) UnmarshalCBOR(r io.Reader) (err error)

func (*ListOK) UnmarshalDagJSON

func (t *ListOK) UnmarshalDagJSON(r io.Reader) (err error)

type ListUploadItem

type ListUploadItem struct {
	Root  cid.Cid  `cborgen:"root" dagjsongen:"root"`
	Index *cid.Cid `cborgen:"index,omitempty" dagjsongen:"index,omitempty"`
}

func (*ListUploadItem) MarshalCBOR

func (t *ListUploadItem) MarshalCBOR(w io.Writer) error

func (*ListUploadItem) MarshalDagJSON

func (t *ListUploadItem) MarshalDagJSON(w io.Writer) error

func (*ListUploadItem) UnmarshalCBOR

func (t *ListUploadItem) UnmarshalCBOR(r io.Reader) (err error)

func (*ListUploadItem) UnmarshalDagJSON

func (t *ListUploadItem) UnmarshalDagJSON(r io.Reader) (err error)

type RemoveArguments

type RemoveArguments struct {
	Root cid.Cid `cborgen:"root" dagjsongen:"root"`
}

func (*RemoveArguments) MarshalCBOR

func (t *RemoveArguments) MarshalCBOR(w io.Writer) error

func (*RemoveArguments) MarshalDagJSON

func (t *RemoveArguments) MarshalDagJSON(w io.Writer) error

func (*RemoveArguments) UnmarshalCBOR

func (t *RemoveArguments) UnmarshalCBOR(r io.Reader) (err error)

func (*RemoveArguments) UnmarshalDagJSON

func (t *RemoveArguments) UnmarshalDagJSON(r io.Reader) (err error)

type RemoveOK

type RemoveOK = commands.Unit

Directories

Path Synopsis
gen command

Jump to

Keyboard shortcuts

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