Directories ¶
Path | Synopsis |
---|---|
Package assets contains database migration scripts and test files
|
Package assets contains database migration scripts and test files |
Package cmd contains all the commands included in the binary file.
|
Package cmd contains all the commands included in the binary file. |
migrate
Package migrate contains the command to perform database migrations.
|
Package migrate contains the command to perform database migrations. |
openfga
Package main contains the root of all commands.
|
Package main contains the root of all commands. |
run
Package run contains the command to run an OpenFGA server.
|
Package run contains the command to run an OpenFGA server. |
util
Package util provides common utilities for spf13/cobra CLI utilities that can be used for various commands within this project.
|
Package util provides common utilities for spf13/cobra CLI utilities that can be used for various commands within this project. |
validatemodels
Package validatemodels contains the command to run validations on authorization models.
|
Package validatemodels contains the command to run validations on authorization models. |
internal
|
|
build
Package build provides build information that is linked into the application.
|
Package build provides build information that is linked into the application. |
condition/metrics
Package metrics provides various metric and telemetry definitions for OpenFGA Conditions.
|
Package metrics provides various metric and telemetry definitions for OpenFGA Conditions. |
graph
Package graph contains code related to evaluation of authorization models through graph traversals.
|
Package graph contains code related to evaluation of authorization models through graph traversals. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
server/config
Package config contains all knobs and defaults used to configure features of OpenFGA when running as a standalone server.
|
Package config contains all knobs and defaults used to configure features of OpenFGA when running as a standalone server. |
pkg
|
|
encoder
Package encoder provides implementations for data encoding and continuation token encoding.
|
Package encoder provides implementations for data encoding and continuation token encoding. |
encrypter
Package encrypter contains data encryption implementations.
|
Package encrypter contains data encryption implementations. |
gateway
Package gateway provides implementations to send data through the transport (e.g.
|
Package gateway provides implementations to send data through the transport (e.g. |
logger
Package logger contains logging implementations.
|
Package logger contains logging implementations. |
middleware/http
Package http contains middleware and utility functions to modify HTTP requests and responses.
|
Package http contains middleware and utility functions to modify HTTP requests and responses. |
middleware/logging
Package logging contains logging middleware.
|
Package logging contains logging middleware. |
middleware/requestid
Package requestid contains middleware to inject and manage request id context.
|
Package requestid contains middleware to inject and manage request id context. |
middleware/storeid
Package storeid contains middleware to inject and manage the store ID context.
|
Package storeid contains middleware to inject and manage the store ID context. |
middleware/validator
Package validator contains middleware that validates API input parameters.
|
Package validator contains middleware that validates API input parameters. |
server
Package server contains the endpoint handlers.
|
Package server contains the endpoint handlers. |
server/commands
Package commands contains the code that handles each endpoint.
|
Package commands contains the code that handles each endpoint. |
server/commands/reverseexpand
Package reverseexpand contains the code that handles the ReverseExpand API
|
Package reverseexpand contains the code that handles the ReverseExpand API |
server/errors
Package errors contains custom error codes that are sent to clients.
|
Package errors contains custom error codes that are sent to clients. |
server/health
Package health contains the service that check the health of an OpenFGA server.
|
Package health contains the service that check the health of an OpenFGA server. |
storage
Package storage contains storage interfaces and implementations.
|
Package storage contains storage interfaces and implementations. |
storage/memory
Package memory contains an implementation of the storage interface that lives in memory.
|
Package memory contains an implementation of the storage interface that lives in memory. |
storage/mysql
Package mysql contains an implementation of the storage interface that works with MySQL.
|
Package mysql contains an implementation of the storage interface that works with MySQL. |
storage/postgres
Package postgres contains an implementation of the storage interface that works with Postgres.
|
Package postgres contains an implementation of the storage interface that works with Postgres. |
storage/sqlcommon
Package sqlcommon contains utility functions shared among all SQL data stores.
|
Package sqlcommon contains utility functions shared among all SQL data stores. |
storage/storagewrappers
Package storagewrappers contains decorators for storage implementations.
|
Package storagewrappers contains decorators for storage implementations. |
telemetry
Package telemetry contains code that emits telemetry (logging, metrics, tracing).
|
Package telemetry contains code that emits telemetry (logging, metrics, tracing). |
testfixtures/storage
Package storage contains containers that can be used to test all available data stores.
|
Package storage contains containers that can be used to test all available data stores. |
testutils
Package testutils contains code that is useful in tests.
|
Package testutils contains code that is useful in tests. |
tuple
Package tuple contains code to manipulate tuples and errors related to tuples.
|
Package tuple contains code to manipulate tuples and errors related to tuples. |
typesystem
Package typesystem contains code to manipulate authorization models.
|
Package typesystem contains code to manipulate authorization models. |
check
Package check contains integration tests for the Check API.
|
Package check contains integration tests for the Check API. |
listobjects
Package listobjects contains integration tests for the ListObjects and StreamedListObjects APIs.
|
Package listobjects contains integration tests for the ListObjects and StreamedListObjects APIs. |
listusers
Package listusers contains integration tests for the ListUsers and StreamedListUsers APIs.
|
Package listusers contains integration tests for the ListUsers and StreamedListUsers APIs. |
writemodel
Package writemodel contains integration tests for the WriteAuthorizationModel API.
|
Package writemodel contains integration tests for the WriteAuthorizationModel API. |
Click to show internal directories.
Click to hide internal directories.