Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Equals = binding.Bind[*EqualsArguments, *EqualsOK](command.MustParse("/assert/equals"))
Equals claims data is referred to by another CID e.g CAR CID & Piece CID
View Source
var Index = binding.Bind[*IndexArguments, *IndexOK](command.MustParse("/assert/index"))
Index claims that a content graph can be found in blob(s) that are identified and indexed in the given index CID.
View Source
var Location = binding.Bind[*LocationArguments, *LocationOK](command.MustParse("/assert/location"))
Functions ¶
This section is empty.
Types ¶
type EqualsArguments ¶
type EqualsArguments struct {
Content multihash.Multihash `cborgen:"content" dagjsongen:"content"`
Equals cid.Cid `cborgen:"equals" dagjsongen:"equals"`
}
func (*EqualsArguments) MarshalCBOR ¶
func (t *EqualsArguments) MarshalCBOR(w io.Writer) error
func (*EqualsArguments) MarshalDagJSON ¶
func (t *EqualsArguments) MarshalDagJSON(w io.Writer) error
func (*EqualsArguments) UnmarshalCBOR ¶
func (t *EqualsArguments) UnmarshalCBOR(r io.Reader) (err error)
func (*EqualsArguments) UnmarshalDagJSON ¶
func (t *EqualsArguments) UnmarshalDagJSON(r io.Reader) (err error)
type IndexArguments ¶
func (*IndexArguments) MarshalCBOR ¶
func (t *IndexArguments) MarshalCBOR(w io.Writer) error
func (*IndexArguments) MarshalDagJSON ¶
func (t *IndexArguments) MarshalDagJSON(w io.Writer) error
func (*IndexArguments) UnmarshalCBOR ¶
func (t *IndexArguments) UnmarshalCBOR(r io.Reader) (err error)
func (*IndexArguments) UnmarshalDagJSON ¶
func (t *IndexArguments) UnmarshalDagJSON(r io.Reader) (err error)
type IndexMetadata ¶
type IndexMetadata struct {
// RetrievalAuth is a list of CIDs of delegations (in order required for
// invocation) that can be used as proofs to issue a `/content/retrieve`
// invocation to retrieve an index blob.
RetrievalAuth []cid.Cid `cborgen:"retrievalAuth" dagjsongen:"retrievalAuth"`
}
func (*IndexMetadata) MarshalCBOR ¶
func (t *IndexMetadata) MarshalCBOR(w io.Writer) error
func (*IndexMetadata) MarshalDagJSON ¶
func (t *IndexMetadata) MarshalDagJSON(w io.Writer) error
func (*IndexMetadata) UnmarshalCBOR ¶
func (t *IndexMetadata) UnmarshalCBOR(r io.Reader) (err error)
func (*IndexMetadata) UnmarshalDagJSON ¶
func (t *IndexMetadata) UnmarshalDagJSON(r io.Reader) (err error)
type LocationArguments ¶
type LocationArguments struct {
Space did.DID `cborgen:"space" dagjsongen:"space"`
Content multihash.Multihash `cborgen:"content" dagjsongen:"content"`
Location []commands.CborURL `cborgen:"location" dagjsongen:"location"`
Range *Range `cborgen:"range,omitempty" dagjsongen:"range,omitempty"`
}
func (*LocationArguments) MarshalCBOR ¶
func (t *LocationArguments) MarshalCBOR(w io.Writer) error
func (*LocationArguments) MarshalDagJSON ¶
func (t *LocationArguments) MarshalDagJSON(w io.Writer) error
func (*LocationArguments) UnmarshalCBOR ¶
func (t *LocationArguments) UnmarshalCBOR(r io.Reader) (err error)
func (*LocationArguments) UnmarshalDagJSON ¶
func (t *LocationArguments) UnmarshalDagJSON(r io.Reader) (err error)
type LocationOK ¶
Click to show internal directories.
Click to hide internal directories.