permissions

package
v0.0.0-...-2aaabe7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityWallet   = "wallet"
	EntityAdmin    = "admin"
	EntityManager  = "manager"
	EntityArk      = "ark"
	EntityExplorer = "explorer"
	EntityHealth   = "health"
)

Variables

This section is empty.

Functions

func AdminPermissions

func AdminPermissions() []bakery.Op

AdminPermissions returns the permissions of the macaroon admin.macaroon. This grants access to the all actions for all entities.

func AllPermissionsByMethod

func AllPermissionsByMethod() map[string][]bakery.Op

AllPermissionsByMethod returns a mapping of the RPC server calls to the permissions they require.

func ManagerPermissions

func ManagerPermissions() []bakery.Op

ManagerPermissions returns the permissions of the macaroon manager.macaroon. This grants access to the all actions for the manager entity.

func ReadOnlyPermissions

func ReadOnlyPermissions() []bakery.Op

ReadOnlyPermissions returns the permissions of the macaroon readonly.macaroon. This grants access to the read action for all entities.

func WalletPermissions

func WalletPermissions() []bakery.Op

WalletPermissions returns the permissions of the macaroon wallet.macaroon. This grants access to the all actions for the wallet entity.

func Whitelist

func Whitelist() map[string][]bakery.Op

Whitelist returns the list of all whitelisted methods with the relative entity and action.

Types

This section is empty.

Jump to

Keyboard shortcuts

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