impl

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLStore added in v1.3.0

type ACLStore struct {
	// contains filtered or unexported fields
}

ACLStore has access to the stored acl information.

func NewACL

func NewACL(db *database.SQLiteDB) *ACLStore

NewACL creates a new instance of the ACL.

func (*ACLStore) CheckPrivileges added in v1.3.0

func (acl *ACLStore) CheckPrivileges(
	ctx context.Context,
	tx *sql.Tx,
	chainID tableland.ChainID,
	controller common.Address,
	id tables.TableID,
	op tableland.Operation,
) (bool, error)

CheckPrivileges checks if an address can execute a specific operation on a table.

type SystemACL added in v1.3.0

type SystemACL struct {
	Controller string
	ChainID    tableland.ChainID
	TableID    tables.TableID
	Privileges tableland.Privileges
}

SystemACL represents the system acl table.

Jump to

Keyboard shortcuts

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