Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Add = binding.Bind[*AddArguments, *AddOK](command.MustParse("/upload/add"))
var List = binding.Bind[*ListArguments, *ListOK](command.MustParse("/upload/list"))
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 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"`
}
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 ¶
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)