provider

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeregisterAbility = "admin/provider/deregister"
View Source
const ListAbility = "admin/provider/list"
View Source
const RegisterAbility = "admin/provider/register"
View Source
const WeightSetAbility = "admin/provider/weight/set"

Variables

Functions

func DeregisterCaveatsType

func DeregisterCaveatsType() schema.Type

func DeregisterOkType

func DeregisterOkType() schema.Type

func ListCaveatsType

func ListCaveatsType() schema.Type

func ListOkType

func ListOkType() schema.Type

func RegisterCaveatsType

func RegisterCaveatsType() schema.Type

func RegisterOkType

func RegisterOkType() schema.Type

func WeightSetCaveatsType

func WeightSetCaveatsType() schema.Type

func WeightSetOkType

func WeightSetOkType() schema.Type

Types

type DeregisterCaveats

type DeregisterCaveats struct {
	Provider did.DID
}

func (DeregisterCaveats) ToIPLD

func (dc DeregisterCaveats) ToIPLD() (datamodel.Node, error)

type DeregisterOk

type DeregisterOk = ok.Unit

type ListCaveats

type ListCaveats struct{}

func (ListCaveats) ToIPLD

func (lc ListCaveats) ToIPLD() (datamodel.Node, error)

type ListOk

type ListOk struct {
	Providers []Provider
}

func (ListOk) ToIPLD

func (lo ListOk) ToIPLD() (datamodel.Node, error)

type Provider

type Provider struct {
	ID                did.DID
	Endpoint          string
	Weight            int
	ReplicationWeight int
}

type RegisterCaveats

type RegisterCaveats struct {
	Endpoint string
	Proof    ipld.Link
}

func (RegisterCaveats) ToIPLD

func (rc RegisterCaveats) ToIPLD() (datamodel.Node, error)

type RegisterOk

type RegisterOk = ok.Unit

type WeightSetCaveats

type WeightSetCaveats struct {
	Provider          did.DID
	Weight            int
	ReplicationWeight int
}

func (WeightSetCaveats) ToIPLD

func (wc WeightSetCaveats) ToIPLD() (datamodel.Node, error)

type WeightSetOk

type WeightSetOk = ok.Unit

Jump to

Keyboard shortcuts

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