blob

package
v0.0.0-...-05b01bc Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0, MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const AcceptAbility = "blob/accept"
View Source
const AllocateAbility = "blob/allocate"

Variables

Functions

func AcceptCaveatsType

func AcceptCaveatsType() schema.Type

func AcceptOkType

func AcceptOkType() schema.Type

func AllocateCaveatsType

func AllocateCaveatsType() schema.Type

func AllocateOkType

func AllocateOkType() schema.Type

Types

type AcceptCaveats

type AcceptCaveats struct {
	Space did.DID
	Blob  Blob
	Put   Promise
}

func (AcceptCaveats) ToIPLD

func (ac AcceptCaveats) ToIPLD() (datamodel.Node, error)

type AcceptOk

type AcceptOk struct {
	Site ucan.Link
	PDP  *ucan.Link
}

func (AcceptOk) ToIPLD

func (ao AcceptOk) ToIPLD() (datamodel.Node, error)

type Address

type Address struct {
	URL     url.URL
	Headers http.Header
	Expires uint64
}

type AllocateCaveats

type AllocateCaveats struct {
	Space did.DID
	Blob  Blob
	Cause ucan.Link
}

func (AllocateCaveats) ToIPLD

func (ac AllocateCaveats) ToIPLD() (datamodel.Node, error)

type AllocateOk

type AllocateOk struct {
	Size    uint64
	Address *Address
}

func (AllocateOk) ToIPLD

func (ao AllocateOk) ToIPLD() (datamodel.Node, error)

type Await

type Await struct {
	Selector string
	Link     ipld.Link
}

type Blob

type Blob struct {
	Digest multihash.Multihash
	Size   uint64
}

type Promise

type Promise struct {
	UcanAwait Await
}

Jump to

Keyboard shortcuts

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