ucans

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveDelegations

func ArchiveDelegations(delegations ...delegation.Delegation) ([]byte, error)

ArchiveDelegations takes a list of delegations and returns CAR file bytes. This is the legacy format used in w3infra.

func ExtractDelegations

func ExtractDelegations(b []byte) ([]delegation.Delegation, error)

ExtractDelegations extracts a set of delegations from a CAR file encoded in legacy format.

func FormatDelegations

func FormatDelegations(delegations ...delegation.Delegation) (string, error)

FormatDelegations takes a list of delegations and returns a string that can be included in a URL.

func ParseDelegations

func ParseDelegations(s string) ([]delegation.Delegation, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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