v2

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 24 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, e3 *v3.Exporter) *Exporter

func (*Exporter) Export

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

type Importer

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

func NewImporter

func NewImporter(logger *zerolog.Logger, store *bdb.BoltDB, i3 *v3.Importer) *Importer

func (*Importer) Import

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

type Reader

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

func NewReader

func NewReader(logger *zerolog.Logger, store *bdb.BoltDB, r3 *v3.Reader) *Reader

func (*Reader) CheckPermission

Check if subject has permission on object.

func (*Reader) CheckRelation

Check if subject has relation to object.

func (*Reader) GetGraph

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

Get object dependency graph.

func (*Reader) GetObject

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

Get single object instance.

func (*Reader) GetObjectMany

Get multiple object instances by id or type+key, in a single request.

func (*Reader) GetObjectType

Get object type (metadata).

func (*Reader) GetObjectTypes

Get all objects types (metadata) (paginated).

func (*Reader) GetObjects

Get all object instances, optionally filtered by object type. (paginated).

func (*Reader) GetPermission

Get permission (metadata).

func (*Reader) GetPermissions

Get all permissions (metadata) (paginated).

func (*Reader) GetRelation

Get relation instances based on subject, relation, object filter.

func (*Reader) GetRelationType

Get relation type (metadata).

func (*Reader) GetRelationTypes

Get all relation types, optionally filtered by object type (metadata) (paginated).

func (*Reader) GetRelations

Get relation instances based on subject, relation, object filter (paginated).

type Writer

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

func NewWriter

func NewWriter(logger *zerolog.Logger, store *bdb.BoltDB, w3 *v3.Writer) *Writer

func (*Writer) DeleteObject

DeleteObject, implementation is delegated to writer.v3.DeleteObject.

func (*Writer) DeleteObjectType

DeleteObjectType, obsolete, use set manifest to manipulate metadata.

func (*Writer) DeletePermission

DeletePermission, obsolete, use set manifest to manipulate metadata.

func (*Writer) DeleteRelation

DeleteRelation, implementation is delegated to writer.v3.DeleteRelation.

func (*Writer) DeleteRelationType

DeleteRelationType, obsolete, use set manifest to manipulate metadata.

func (*Writer) SetObject

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

SetObject, implementation is delegated to writer.v3.SetObject.

func (*Writer) SetObjectType

SetObjectType, obsolete, use set manifest to manipulate metadata.

func (*Writer) SetPermission

SetPermission, obsolete, use set manifest to manipulate metadata.

func (*Writer) SetRelation

SetRelation, implementation is delegated to writer.v3.SetRelation.

func (*Writer) SetRelationType

SetRelationType, obsolete, use set manifest to manipulate metadata.

Jump to

Keyboard shortcuts

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