Documentation ¶
Index ¶
- func BeginReadTx(driver neo4j.Driver, configurers ...func(*neo4j.TransactionConfig)) (neo4j.Session, neo4j.Transaction, error)
- func BeginWriteTx(driver neo4j.Driver, configurers ...func(*neo4j.TransactionConfig)) (neo4j.Session, neo4j.Transaction, error)
- func DeleteGrant(tx neo4j.Transaction, iGrant Grant) (err error)
- func DeleteGrants(tx neo4j.Transaction, iGrants []Grant) (err error)
- func DeleteShadow(tx neo4j.Transaction, iShadow Shadow) (err error)
- func EmitEventConsentCreated(natsConnection *nats.Conn, consent Consent)
- func SyncScopesToHydra(tx neo4j.Transaction, iClient Identity) (err error)
- type Client
- type Consent
- func CreateConsent(tx neo4j.Transaction, iOwner Identity, iSubscriber Identity, ...) (consent Consent, err error)
- func DeleteConsent(tx neo4j.Transaction, iOwner Identity, iSubscriber Identity, ...) (consent Consent, err error)
- func FetchConsents(tx neo4j.Transaction, iOwner Identity, iSubscriber Identity, ...) (rConsents []Consent, err error)
- type Grant
- func CreateGrant(tx neo4j.Transaction, iReceive Identity, iScope Scope, iPublishedBy Identity, ...) (rGrant Grant, err error)
- func CreateGrants(tx neo4j.Transaction, iGrants []Grant) (rGrants []Grant, err error)
- func FetchGrants(tx neo4j.Transaction, iGranted Identity, iFilterScopes []Scope, ...) (grants []Grant, err error)
- type GrantRule
- type Human
- type Identity
- type Publish
- type PublishRule
- type ResourceServer
- type Scope
- type Shadow
- type Subscription
- type Verdict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginReadTx ¶
func BeginReadTx(driver neo4j.Driver, configurers ...func(*neo4j.TransactionConfig)) (neo4j.Session, neo4j.Transaction, error)
func BeginWriteTx ¶
func BeginWriteTx(driver neo4j.Driver, configurers ...func(*neo4j.TransactionConfig)) (neo4j.Session, neo4j.Transaction, error)
func DeleteGrant ¶
func DeleteGrant(tx neo4j.Transaction, iGrant Grant) (err error)
func DeleteGrants ¶
func DeleteGrants(tx neo4j.Transaction, iGrants []Grant) (err error)
func DeleteShadow ¶
func DeleteShadow(tx neo4j.Transaction, iShadow Shadow) (err error)
func EmitEventConsentCreated ¶
func SyncScopesToHydra ¶
func SyncScopesToHydra(tx neo4j.Transaction, iClient Identity) (err error)
Types ¶
type Grant ¶
type Grant struct { Identity Identity Scope Scope Publisher Identity OnBehalfOf Identity MayGrantScopes []Scope GrantRule GrantRule }
func CreateGrant ¶
func CreateGrants ¶
func CreateGrants(tx neo4j.Transaction, iGrants []Grant) (rGrants []Grant, err error)
func FetchGrants ¶
type Identity ¶
type Identity struct {
Id string
}
func CreateEntity ¶
func FetchEntities ¶
func FetchEntities(tx neo4j.Transaction, iEntities []Identity) (entities []Identity, err error)
type Publish ¶
type Publish struct { Publisher Identity Scope Scope Rule PublishRule MayGrantScopes []Scope MayGrantRules []PublishRule }
func CreatePublishes ¶
func FetchPublishes ¶
type PublishRule ¶
type ResourceServer ¶
func FetchResourceServerByAudience ¶
func FetchResourceServerByAudience(driver neo4j.Driver, aud string) (*ResourceServer, error)
@TODO @FIXME this is idp stuff
type Subscription ¶
func CreateSubscription ¶
func CreateSubscription(tx neo4j.Transaction, iSubscription Subscription, iRequest Identity) (rSubscription Subscription, err error)
func FetchSubscriptions ¶
func FetchSubscriptions(tx neo4j.Transaction, iFilterSubscriber Identity, iFilterPublisher Identity, iFilterScopes []Scope) (rSubscriptions []Subscription, err error)
Click to show internal directories.
Click to hide internal directories.