neo4j

package
v0.0.0-...-e1b33c3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRHABACRepo

func NewRHABACRepo(manager *TransactionManager, factory CypherFactory) domain.RHABACRepo

Types

type CypherFactory

type CypherFactory interface {
	// contains filtered or unexported methods
}

func NewSimpleCypherFactory

func NewSimpleCypherFactory() CypherFactory

type RHABACRepo

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

func (RHABACRepo) CreateInheritanceRel

func (store RHABACRepo) CreateInheritanceRel(req domain.CreateInheritanceRelReq) domain.AdministrationResp

func (RHABACRepo) CreatePolicy

func (store RHABACRepo) CreatePolicy(req domain.CreatePolicyReq) domain.AdministrationResp

func (RHABACRepo) CreateResource

func (store RHABACRepo) CreateResource(req domain.CreateResourceReq) domain.AdministrationResp

func (RHABACRepo) DeleteAttribute

func (store RHABACRepo) DeleteAttribute(req domain.DeleteAttributeReq) domain.AdministrationResp

func (RHABACRepo) DeleteInheritanceRel

func (store RHABACRepo) DeleteInheritanceRel(req domain.DeleteInheritanceRelReq) domain.AdministrationResp

func (RHABACRepo) DeletePolicy

func (store RHABACRepo) DeletePolicy(req domain.DeletePolicyReq) domain.AdministrationResp

func (RHABACRepo) DeleteResource

func (store RHABACRepo) DeleteResource(req domain.DeleteResourceReq) domain.AdministrationResp

func (RHABACRepo) GetApplicablePolicies

func (RHABACRepo) GetPermissionHierarchy

func (RHABACRepo) GetResource

func (store RHABACRepo) GetResource(req domain.GetResourceReq) domain.GetResourceResp

func (RHABACRepo) PutAttribute

func (store RHABACRepo) PutAttribute(req domain.PutAttributeReq) domain.AdministrationResp

type TransactionFunction

type TransactionFunction func(transaction neo4j.Transaction) (interface{}, error)

type TransactionManager

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

func NewTransactionManager

func NewTransactionManager(uri, dbName string) (*TransactionManager, error)

func (*TransactionManager) ReadTransaction

func (manager *TransactionManager) ReadTransaction(cypher string, params map[string]interface{}) (interface{}, error)

func (*TransactionManager) Stop

func (manager *TransactionManager) Stop()

func (*TransactionManager) WriteTransaction

func (manager *TransactionManager) WriteTransaction(cypher string, params map[string]interface{}) error

func (*TransactionManager) WriteTransactions

func (manager *TransactionManager) WriteTransactions(cyphers []string, params []map[string]interface{}) error

Jump to

Keyboard shortcuts

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