acl

package
v0.0.0-...-d9e9996 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAccount

func IsAccount(name string) int

IsAccount check the type of name return : -1 if name is invalid

1 if name is account
0 if name is AK

func ValidRawAccount

func ValidRawAccount(accountName string) error

ValidRawAccount validate account number

Types

type AccountACL

type AccountACL interface {
	GetAccountACL(accountName string) (*pb.Acl, error)
	GetAccountACLWithConfirmed(accountName string) (*pb.Acl, bool, error)
}

AccountACL is interface to read/write accounts' ACL

type ContractACL

type ContractACL interface {
	GetContractMethodACL(contractName string, methodName string) (*pb.Acl, error)
	GetContractMethodACLWithConfirmed(contractName string, methodName string) (*pb.Acl, bool, error)
}

ContractACL is interface to read/write contracts' ACL

type ManagerInterface

type ManagerInterface interface {
	AccountACL
	ContractACL
}

ManagerInterface defines the interface of ACL Manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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