assert

package
v0.0.0-...-0f7fa19 Latest Latest
Warning

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

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

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 EqualsOK

type EqualsOK = commands.Unit

type IndexArguments

type IndexArguments struct {
	Index cid.Cid `cborgen:"index" dagjsongen:"index"`
}

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 IndexOK

type IndexOK = commands.Unit

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

type LocationOK = commands.Unit

type Range

type Range struct {
	Start uint64  `cborgen:"start" dagjsongen:"start"`
	End   *uint64 `cborgen:"end,omitempty" dagjsongen:"end,omitempty"`
}

func (*Range) MarshalCBOR

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

func (*Range) MarshalDagJSON

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

func (*Range) UnmarshalCBOR

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

func (*Range) UnmarshalDagJSON

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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