permissions

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityOperator = "operator"
	EntityTrade    = "trade"
	EntityMarket   = "market"
	EntityPrice    = "price"
	EntityUnlocker = "unlocker"
	EntityWallet   = "wallet"
	EntityWebhook  = "webhook"
)

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 MarketPermissions

func MarketPermissions() []bakery.Op

MarketPermissions returns the permissions of the macaroon market.macaroon. This grants access to all actions for the market and price entities.

func PricePermissions

func PricePermissions() []bakery.Op

PricePermissions returns the permissions of the macaroon price.macaroon. This grants access to all actions for the price 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 WebhookPermissions

func WebhookPermissions() []bakery.Op

WebhookPermissions returns the permissions of the macaroon webhook.macaroon. This grants access to the all actions for the webhook 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