invocation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invocation

type Invocation interface {
	delegation.Delegation
}

Invocation represents a UCAN that can be presented to a service provider to invoke or "exercise" a Capability. You can think of invocations as a serialized function call, where the ability or `can` portion of the Capability acts as the function name, and the resource (`with`) and caveats (`nb`) of the capability act as function arguments.

Most invocations will require valid proofs, which consist of a chain of Delegations. The service provider will inspect the proofs to verify that the invocation has sufficient privileges to execute.

func NewInvocation

func NewInvocation(root ipld.Block, bs blockstore.BlockReader) (Invocation, error)

func NewInvocationView

func NewInvocationView(root ipld.Link, bs blockstore.BlockReader) (Invocation, error)

type IssuedInvocation

type IssuedInvocation interface {
	Invocation
}

func Invoke

func Invoke[C ucan.CaveatBuilder](issuer ucan.Signer, audience ucan.Principal, capability ucan.Capability[C], options ...delegation.Option) (IssuedInvocation, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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