Documentation
¶
Overview ¶
Package provider defines the /admin/provider/* UCAN commands. These are admin commands: they are authorized only when the invocation issuer is the service's own identity (subject == service), so they carry no delegation proofs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = binding.Bind[*AddArguments, *AddOK](command.MustParse("/admin/provider/add"))
Add registers a regional provider (DID + region) with Hilt.
Functions ¶
This section is empty.
Types ¶
type AddArguments ¶
type AddArguments struct {
Provider did.DID `cborgen:"provider" dagjsongen:"provider"`
Region string `cborgen:"region" dagjsongen:"region"`
}
AddArguments are the arguments to the /admin/provider/add command: the regional provider's DID and the region it serves.
func (*AddArguments) MarshalCBOR ¶
func (t *AddArguments) MarshalCBOR(w io.Writer) error
func (*AddArguments) MarshalDagJSON ¶
func (t *AddArguments) MarshalDagJSON(w io.Writer) error
func (*AddArguments) UnmarshalCBOR ¶
func (t *AddArguments) UnmarshalCBOR(r io.Reader) (err error)
func (*AddArguments) UnmarshalDagJSON ¶
func (t *AddArguments) UnmarshalDagJSON(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.