Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyReceipt ¶
type Option ¶
type Option func(cfg *receiptConfig) error
Option is an option configuring a UCAN delegation.
func WithProofs ¶
func WithProofs(prf delegation.Proofs) Option
WithProofs configures the proofs for the receipt. If the `issuer` of this `Receipt` is not the resource owner / service provider, for the delegated capabilities, the `proofs` must contain valid `Proof`s containing delegations to the `issuer`.
type Receipt ¶
type Receipt[O, X any] interface { ipld.View Ran() invocation.Invocation Out() result.Result[O, X] Fx() fx.Effects Meta() map[string]any Issuer() ucan.Principal Proofs() delegation.Proofs Signature() signature.SignatureView }
Receipt represents a view of the invocation receipt. This interface provides an ergonomic API and allows you to reference linked IPLD objects if they are included in the source DAG.
func NewReceipt ¶
func NewReceipt[O, X any](root ipld.Link, blocks blockstore.BlockReader, typ schema.Type) (Receipt[O, X], error)
type ReceiptReader ¶
type ReceiptReader[O, X any] interface { Read(rcpt ipld.Link, blks iter.Seq2[block.Block, error]) (Receipt[O, X], error) }
func NewReceiptReader ¶
func NewReceiptReader[O, X any](resultschema []byte) (ReceiptReader[O, X], error)
Click to show internal directories.
Click to hide internal directories.