Documentation
¶
Overview ¶
utils is a package containing tools related to access controllers
Index ¶
- func CacheGrants(dbName string, grants []string)
- func Create(ctx context.Context, db iface.OrbitDB, controllerType string, ...) (cid.Cid, error)
- func DeleteCachedGrants(dbName string)
- func EnsureAddress(address string) string
- func GetCachedGrants(dbName string) ([]string, bool)
- func Resolve(ctx context.Context, db iface.OrbitDB, manifestAddress string, ...) (accesscontroller.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheGrants ¶ added in v1.23.10
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 ¶
EnsureAddress Checks that an access controller address is properly formatted appends "/_access" if required
func GetCachedGrants ¶ added in v1.23.10
func Resolve ¶
func Resolve(ctx context.Context, db iface.OrbitDB, manifestAddress string, params accesscontroller.ManifestParams, options ...accesscontroller.Option) (accesscontroller.Interface, error)
Resolve Resolves an access controller using its manifest address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.