provider

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

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)

type AddOK

type AddOK = commands.Unit

AddOK is the (empty) result of a successful /admin/provider/add.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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