Directories ¶
Path | Synopsis |
---|---|
Package cmd is the package holding the commands to start the permissions-api and manage the schema
|
Package cmd is the package holding the commands to start the permissions-api and manage the schema |
internal
|
|
api
Package api contains functions and data for a functional permissions-api server.
|
Package api contains functions and data for a functional permissions-api server. |
config
Package config defines the application configuration
|
Package config defines the application configuration |
iapl
Package iapl contains functions and data for the Infratographer Authorization Policy Language, a domain-specific language for defining authorization policies based on resource relationships.
|
Package iapl contains functions and data for the Infratographer Authorization Policy Language, a domain-specific language for defining authorization policies based on resource relationships. |
pubsub
Package pubsub provides functions and data for a NATS consumer listening for resource lifecycle events.
|
Package pubsub provides functions and data for a NATS consumer listening for resource lifecycle events. |
query
Package query provides the client for querying spicedb
|
Package query provides the client for querying spicedb |
query/mock
Package mock contains a mock implementation of the query.Engine interface.
|
Package mock contains a mock implementation of the query.Engine interface. |
spicedbx
Package spicedbx is the wrapper around spicedb client interaction
|
Package spicedbx is the wrapper around spicedb client interaction |
storage
Package storage interacts with the permissions-api database handling the metadata updates for roles and resources.
|
Package storage interacts with the permissions-api database handling the metadata updates for roles and resources. |
storage/teststore
Package teststore is a testing helper package which initializes a new crdb database and runs migrations returning a new store which may be used during testing.
|
Package teststore is a testing helper package which initializes a new crdb database and runs migrations returning a new store which may be used during testing. |
testauth
Package testauth implements a simple JWKS file server and token signer for use in test packages when jwt validation is required.
|
Package testauth implements a simple JWKS file server and token signer for use in test packages when jwt validation is required. |
testingx
Package testingx contains functions and data to facilitate testing using the testing package.
|
Package testingx contains functions and data to facilitate testing using the testing package. |
types
Package types exposes domain types for permissions-api.
|
Package types exposes domain types for permissions-api. |
pkg
|
|
permissions
Package permissions implements an echo middleware to simplify checking permission checks in downstream handlers by adding a checking function to the context which may later be called to check permissions.
|
Package permissions implements an echo middleware to simplify checking permission checks in downstream handlers by adding a checking function to the context which may later be called to check permissions. |
permissions/mockpermissions
Package mockpermissions implements permissions.AuthRelationshipRequestHandler.
|
Package mockpermissions implements permissions.AuthRelationshipRequestHandler. |
Click to show internal directories.
Click to hide internal directories.