Documentation ¶
Index ¶
- func NewRHABACRepo(manager *TransactionManager, factory CypherFactory) domain.RHABACRepo
- type CypherFactory
- type RHABACRepo
- func (store RHABACRepo) CreateInheritanceRel(req domain.CreateInheritanceRelReq) domain.AdministrationResp
- func (store RHABACRepo) CreatePolicy(req domain.CreatePolicyReq) domain.AdministrationResp
- func (store RHABACRepo) CreateResource(req domain.CreateResourceReq) domain.AdministrationResp
- func (store RHABACRepo) DeleteAttribute(req domain.DeleteAttributeReq) domain.AdministrationResp
- func (store RHABACRepo) DeleteInheritanceRel(req domain.DeleteInheritanceRelReq) domain.AdministrationResp
- func (store RHABACRepo) DeletePolicy(req domain.DeletePolicyReq) domain.AdministrationResp
- func (store RHABACRepo) DeleteResource(req domain.DeleteResourceReq) domain.AdministrationResp
- func (store RHABACRepo) GetApplicablePolicies(req domain.GetApplicablePoliciesReq) domain.GetApplicablePoliciesResp
- func (store RHABACRepo) GetPermissionHierarchy(req domain.GetPermissionHierarchyReq) domain.GetPermissionHierarchyResp
- func (store RHABACRepo) GetResource(req domain.GetResourceReq) domain.GetResourceResp
- func (store RHABACRepo) PutAttribute(req domain.PutAttributeReq) domain.AdministrationResp
- type TransactionFunction
- type TransactionManager
- func (manager *TransactionManager) ReadTransaction(cypher string, params map[string]interface{}) (interface{}, error)
- func (manager *TransactionManager) Stop()
- func (manager *TransactionManager) WriteTransaction(cypher string, params map[string]interface{}) error
- func (manager *TransactionManager) WriteTransactions(cyphers []string, params []map[string]interface{}) error
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 (store RHABACRepo) GetApplicablePolicies(req domain.GetApplicablePoliciesReq) domain.GetApplicablePoliciesResp
func (RHABACRepo) GetPermissionHierarchy ¶
func (store RHABACRepo) GetPermissionHierarchy(req domain.GetPermissionHierarchyReq) domain.GetPermissionHierarchyResp
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
Click to show internal directories.
Click to hide internal directories.