upload

package
v0.0.0-...-75d1051 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AddCommand = "/upload/add"
View Source
const ListCommand = "/upload/list"
View Source
const RemoveCommand = "/upload/remove"

Variables

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"`
}

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 = capabilities.Unit

Directories

Path Synopsis
gen command

Jump to

Keyboard shortcuts

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