uploadlist

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Ability = "upload/list"

Variables

View Source
var ResultSchema []byte

Functions

func NewCapability

func NewCapability(space did.DID, nb *Caveat) ucan.Capability[ucan.MapBuilder]

func NewReceiptReader

func NewReceiptReader() (receipt.ReceiptReader[*Success, *Failure], error)

Types

type Caveat

type Caveat struct {
	Cursor string
	Size   int64
	Pre    bool
}

func (*Caveat) Build

func (c *Caveat) Build() (map[string]datamodel.Node, error)

type Failure

type Failure struct {
	Name    *string
	Message string
	Stack   *string
}

type Item

type Item struct {
	Root       ipld.Link
	Shards     []ipld.Link
	InsertedAt string
	UpdatedAt  string
}

type Success

type Success struct {
	Results []Item
	Before  *string
	After   *string
	Cursor  *string
	Size    uint64
}

Jump to

Keyboard shortcuts

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