utils

package
v1.23.15 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

utils is a package containing tools related to access controllers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheGrants added in v1.23.10

func CacheGrants(dbName string, grants []string)

func Create

func Create(ctx context.Context, db iface.OrbitDB, controllerType string, params accesscontroller.ManifestParams, options ...accesscontroller.Option) (cid.Cid, error)

Create Creates a new access controller and returns the manifest CID

func DeleteCachedGrants added in v1.23.10

func DeleteCachedGrants(dbName string)

func EnsureAddress

func EnsureAddress(address string) string

EnsureAddress Checks that an access controller address is properly formatted appends "/_access" if required

func GetCachedGrants added in v1.23.10

func GetCachedGrants(dbName string) ([]string, bool)

func Resolve

Resolve Resolves an access controller using its manifest address

Types

This section is empty.

Jump to

Keyboard shortcuts

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