Documentation ¶
Overview ¶
Package mysql contains an implementation of the storage interface that works with MySQL.
Index ¶
- type MySQL
- func (m *MySQL) Close()
- func (m *MySQL) CreateStore(ctx context.Context, store *openfgav1.Store) (*openfgav1.Store, error)
- func (m *MySQL) DeleteStore(ctx context.Context, id string) error
- func (m *MySQL) FindLatestAuthorizationModelID(ctx context.Context, store string) (string, error)
- func (m *MySQL) GetStore(ctx context.Context, id string) (*openfgav1.Store, error)
- func (m *MySQL) IsReady(ctx context.Context) (bool, error)
- func (m *MySQL) ListStores(ctx context.Context, opts storage.PaginationOptions) ([]*openfgav1.Store, []byte, error)
- func (m *MySQL) MaxTuplesPerWrite() int
- func (m *MySQL) MaxTypesPerAuthorizationModel() int
- func (m *MySQL) Read(ctx context.Context, store string, tupleKey *openfgav1.TupleKey) (storage.TupleIterator, error)
- func (m *MySQL) ReadAssertions(ctx context.Context, store, modelID string) ([]*openfgav1.Assertion, error)
- func (m *MySQL) ReadAuthorizationModel(ctx context.Context, store string, modelID string) (*openfgav1.AuthorizationModel, error)
- func (m *MySQL) ReadAuthorizationModels(ctx context.Context, store string, opts storage.PaginationOptions) ([]*openfgav1.AuthorizationModel, []byte, error)
- func (m *MySQL) ReadChanges(ctx context.Context, store, objectTypeFilter string, ...) ([]*openfgav1.TupleChange, []byte, error)
- func (m *MySQL) ReadPage(ctx context.Context, store string, tupleKey *openfgav1.TupleKey, ...) ([]*openfgav1.Tuple, []byte, error)
- func (m *MySQL) ReadStartingWithUser(ctx context.Context, store string, opts storage.ReadStartingWithUserFilter) (storage.TupleIterator, error)
- func (m *MySQL) ReadUserTuple(ctx context.Context, store string, tupleKey *openfgav1.TupleKey) (*openfgav1.Tuple, error)
- func (m *MySQL) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter) (storage.TupleIterator, error)
- func (m *MySQL) Write(ctx context.Context, store string, deletes storage.Deletes, ...) error
- func (m *MySQL) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error
- func (m *MySQL) WriteAuthorizationModel(ctx context.Context, store string, model *openfgav1.AuthorizationModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) Close ¶
func (m *MySQL) Close()
Close closes the datastore and cleans up any residual resources.
func (*MySQL) CreateStore ¶
CreateStore is slightly different between Postgres and MySQL
func (*MySQL) FindLatestAuthorizationModelID ¶
func (*MySQL) IsReady ¶
IsReady reports whether this MySQL datastore instance is ready to accept connections.
func (*MySQL) ListStores ¶
func (*MySQL) MaxTuplesPerWrite ¶
func (*MySQL) MaxTypesPerAuthorizationModel ¶
func (*MySQL) ReadAssertions ¶
func (*MySQL) ReadAuthorizationModel ¶
func (*MySQL) ReadAuthorizationModels ¶
func (m *MySQL) ReadAuthorizationModels(ctx context.Context, store string, opts storage.PaginationOptions) ([]*openfgav1.AuthorizationModel, []byte, error)
func (*MySQL) ReadChanges ¶
func (*MySQL) ReadStartingWithUser ¶
func (m *MySQL) ReadStartingWithUser(ctx context.Context, store string, opts storage.ReadStartingWithUserFilter) (storage.TupleIterator, error)
func (*MySQL) ReadUserTuple ¶
func (*MySQL) ReadUsersetTuples ¶
func (m *MySQL) ReadUsersetTuples(ctx context.Context, store string, filter storage.ReadUsersetTuplesFilter) (storage.TupleIterator, error)
func (*MySQL) WriteAssertions ¶
func (m *MySQL) WriteAssertions(ctx context.Context, store, modelID string, assertions []*openfgav1.Assertion) error
WriteAssertions is slightly different between Postgres and MySQL
func (*MySQL) WriteAuthorizationModel ¶
Click to show internal directories.
Click to hide internal directories.