Documentation
¶
Index ¶
Constants ¶
View Source
const AddCommand = "/upload/add"
View Source
const ListCommand = "/upload/list"
View Source
const RemoveCommand = "/upload/remove"
Variables ¶
View Source
var Add = capabilities.MustNew[*AddArguments](AddCommand)
View Source
var List = capabilities.MustNew[*ListArguments](ListCommand)
View Source
var Remove = capabilities.MustNew[*RemoveArguments](RemoveCommand)
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 = capabilities.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"`
}
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)
type RemoveOK ¶
type RemoveOK = capabilities.Unit
Click to show internal directories.
Click to hide internal directories.