v3

package
v0.32.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter(logger *zerolog.Logger, store *bdb.BoltDB, validator *protovalidate.Validator) *Exporter

func (*Exporter) Export

func (s *Exporter) Export(req *dse3.ExportRequest, stream dse3.Exporter_ExportServer) error

func (*Exporter) Validate added in v0.31.4

func (s *Exporter) Validate(msg proto.Message) error

type Importer

type Importer struct {
	// contains filtered or unexported fields
}

func NewImporter

func NewImporter(logger *zerolog.Logger, store *bdb.BoltDB, validator *protovalidate.Validator) *Importer

func (*Importer) Import

func (s *Importer) Import(stream dsi3.Importer_ImportServer) error

func (*Importer) Validate added in v0.31.4

func (s *Importer) Validate(msg proto.Message) error

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(logger *zerolog.Logger, store *bdb.BoltDB) *Model

func (*Model) DeleteManifest

func (*Model) GetManifest

func (s *Model) GetManifest(req *dsm3.GetManifestRequest, stream dsm3.Model_GetManifestServer) error

func (*Model) SetManifest

func (s *Model) SetManifest(stream dsm3.Model_SetManifestServer) error

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(logger *zerolog.Logger, store *bdb.BoltDB, validator *protovalidate.Validator) *Reader

func (*Reader) Check

func (s *Reader) Check(ctx context.Context, req *dsr3.CheckRequest) (*dsr3.CheckResponse, error)

Check, if subject is permitted to access resource (object).

func (*Reader) CheckPermission

CheckPermission, check if subject is permitted to access resource (object).

func (*Reader) CheckRelation

CheckRelation, check if subject has the specified relation to a resource (object).

func (*Reader) GetGraph

func (s *Reader) GetGraph(ctx context.Context, req *dsr3.GetGraphRequest) (*dsr3.GetGraphResponse, error)

GetGraph, return graph of connected objects and relations for requested anchor subject/object.

func (*Reader) GetObject

func (s *Reader) GetObject(ctx context.Context, req *dsr3.GetObjectRequest) (*dsr3.GetObjectResponse, error)

GetObject, get single object instance.

func (*Reader) GetObjectMany

GetObjectMany, get multiple object instances by type+id, in a single request.

func (*Reader) GetObjects

GetObjects, gets (all) object instances, optionally filtered by object type, as a paginated array of objects.

func (*Reader) GetRelation

GetRelation, get a single relation instance based on subject, relation, object filter.

func (*Reader) GetRelations

GetRelations, gets paginated set of relation instances based on subject, relation, object filter.

func (*Reader) Validate added in v0.31.4

func (s *Reader) Validate(msg proto.Message) error

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(logger *zerolog.Logger, store *bdb.BoltDB, validator *protovalidate.Validator) *Writer

func (*Writer) DeleteObject

func (*Writer) DeleteRelation

func (*Writer) SetObject

func (s *Writer) SetObject(ctx context.Context, req *dsw3.SetObjectRequest) (*dsw3.SetObjectResponse, error)

object methods.

func (*Writer) SetRelation

relation methods.

func (*Writer) Validate added in v0.31.4

func (s *Writer) Validate(msg proto.Message) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL