Documentation
¶
Index ¶
- type Access
- func (s *Access) ActionSearch(ctx context.Context, req *acc1.ActionSearchRequest) (*acc1.ActionSearchResponse, error)
- func (s *Access) Evaluation(ctx context.Context, req *acc1.EvaluationRequest) (*acc1.EvaluationResponse, error)
- func (s *Access) Evaluations(ctx context.Context, req *acc1.EvaluationsRequest) (*acc1.EvaluationsResponse, error)
- func (s *Access) ResourceSearch(ctx context.Context, req *acc1.ResourceSearchRequest) (*acc1.ResourceSearchResponse, error)
- func (s *Access) SubjectSearch(ctx context.Context, req *acc1.SubjectSearchRequest) (*acc1.SubjectSearchResponse, error)
- type Exporter
- type Importer
- type Model
- type Reader
- func (s *Reader) Check(ctx context.Context, req *dsr3.CheckRequest) (*dsr3.CheckResponse, error)
- func (s *Reader) CheckPermission(ctx context.Context, req *dsr3.CheckPermissionRequest) (*dsr3.CheckPermissionResponse, error)
- func (s *Reader) CheckRelation(ctx context.Context, req *dsr3.CheckRelationRequest) (*dsr3.CheckRelationResponse, error)
- func (s *Reader) Checks(ctx context.Context, req *dsr3.ChecksRequest) (*dsr3.ChecksResponse, error)
- func (s *Reader) GetGraph(ctx context.Context, req *dsr3.GetGraphRequest) (*dsr3.GetGraphResponse, error)
- func (s *Reader) GetObject(ctx context.Context, req *dsr3.GetObjectRequest) (*dsr3.GetObjectResponse, error)
- func (s *Reader) GetObjectMany(ctx context.Context, req *dsr3.GetObjectManyRequest) (*dsr3.GetObjectManyResponse, error)
- func (s *Reader) GetObjects(ctx context.Context, req *dsr3.GetObjectsRequest) (*dsr3.GetObjectsResponse, error)
- func (s *Reader) GetRelation(ctx context.Context, req *dsr3.GetRelationRequest) (*dsr3.GetRelationResponse, error)
- func (s *Reader) GetRelations(ctx context.Context, req *dsr3.GetRelationsRequest) (*dsr3.GetRelationsResponse, error)
- type Writer
- func (s *Writer) DeleteObject(ctx context.Context, req *dsw3.DeleteObjectRequest) (*dsw3.DeleteObjectResponse, error)
- func (s *Writer) DeleteRelation(ctx context.Context, req *dsw3.DeleteRelationRequest) (*dsw3.DeleteRelationResponse, error)
- func (s *Writer) SetObject(ctx context.Context, req *dsw3.SetObjectRequest) (*dsw3.SetObjectResponse, error)
- func (s *Writer) SetRelation(ctx context.Context, req *dsw3.SetRelationRequest) (*dsw3.SetRelationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶ added in v0.33.10
type Access struct {
acc1.UnimplementedAccessServer
// contains filtered or unexported fields
}
func (*Access) ActionSearch ¶ added in v0.33.12
func (s *Access) ActionSearch(ctx context.Context, req *acc1.ActionSearchRequest) (*acc1.ActionSearchResponse, error)
ActionSearch
The Action Search API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for returning all of the actions that match the search criteria.
The Action Search API is based on the Access Evaluation information model.
func (*Access) Evaluation ¶ added in v0.33.10
func (s *Access) Evaluation(ctx context.Context, req *acc1.EvaluationRequest) (*acc1.EvaluationResponse, error)
Evaluation access check.
The Access Evaluation API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for executing a single access evaluation.
func (*Access) Evaluations ¶ added in v0.33.10
func (s *Access) Evaluations(ctx context.Context, req *acc1.EvaluationsRequest) (*acc1.EvaluationsResponse, error)
Evaluations access check.
The Access Evaluations API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for evaluating multiple access evaluations within the scope of a single message exchange (also known as "boxcarring" requests).
func (*Access) ResourceSearch ¶ added in v0.33.12
func (s *Access) ResourceSearch(ctx context.Context, req *acc1.ResourceSearchRequest) (*acc1.ResourceSearchResponse, error)
ResourceSearch
The Resource Search API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for returning all of the resources that match the search criteria.
The Resource Search API is based on the Access Evaluation information model, but omits the Resource ID.
func (*Access) SubjectSearch ¶ added in v0.33.12
func (s *Access) SubjectSearch(ctx context.Context, req *acc1.SubjectSearchRequest) (*acc1.SubjectSearchResponse, error)
SubjectSearch
The Subject Search API defines the message exchange pattern between a client (PEP) and an authorization service (PDP) for returning all of the subjects that match the search criteria.
The Subject Search API is based on the Access Evaluation information model, but omits the Subject ID.
type Exporter ¶
type Exporter struct {
dse3.UnimplementedExporterServer
// contains filtered or unexported fields
}
func (*Exporter) Export ¶
func (s *Exporter) Export(req *dse3.ExportRequest, stream dse3.Exporter_ExportServer) error
type Importer ¶
type Importer struct {
dsi3.UnimplementedImporterServer
// contains filtered or unexported fields
}
type Model ¶
type Model struct {
dsm3.UnimplementedModelServer
// contains filtered or unexported fields
}
func (*Model) DeleteManifest ¶
func (s *Model) DeleteManifest(ctx context.Context, req *dsm3.DeleteManifestRequest) (*dsm3.DeleteManifestResponse, error)
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 {
dsr3.UnimplementedReaderServer
// contains filtered or unexported fields
}
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 ¶
func (s *Reader) CheckPermission(ctx context.Context, req *dsr3.CheckPermissionRequest) (*dsr3.CheckPermissionResponse, error)
CheckPermission, check if subject is permitted to access resource (object).
func (*Reader) CheckRelation ¶
func (s *Reader) CheckRelation(ctx context.Context, req *dsr3.CheckRelationRequest) (*dsr3.CheckRelationResponse, error)
CheckRelation, check if subject has the specified relation to a resource (object).
func (*Reader) Checks ¶ added in v0.33.0
func (s *Reader) Checks(ctx context.Context, req *dsr3.ChecksRequest) (*dsr3.ChecksResponse, error)
Checks, execute multiple check requests in parallel.
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 ¶
func (s *Reader) GetObjectMany(ctx context.Context, req *dsr3.GetObjectManyRequest) (*dsr3.GetObjectManyResponse, error)
GetObjectMany, get multiple object instances by type+id, in a single request.
func (*Reader) GetObjects ¶
func (s *Reader) GetObjects(ctx context.Context, req *dsr3.GetObjectsRequest) (*dsr3.GetObjectsResponse, error)
GetObjects, gets (all) object instances, optionally filtered by object type, as a paginated array of objects.
func (*Reader) GetRelation ¶
func (s *Reader) GetRelation(ctx context.Context, req *dsr3.GetRelationRequest) (*dsr3.GetRelationResponse, error)
GetRelation, get a single relation instance based on subject, relation, object filter.
func (*Reader) GetRelations ¶
func (s *Reader) GetRelations(ctx context.Context, req *dsr3.GetRelationsRequest) (*dsr3.GetRelationsResponse, error)
GetRelations, gets paginated set of relation instances based on subject, relation, object filter.
type Writer ¶
type Writer struct {
dsw3.UnimplementedWriterServer
// contains filtered or unexported fields
}
func (*Writer) DeleteObject ¶
func (s *Writer) DeleteObject(ctx context.Context, req *dsw3.DeleteObjectRequest) (*dsw3.DeleteObjectResponse, error)
func (*Writer) DeleteRelation ¶
func (s *Writer) DeleteRelation(ctx context.Context, req *dsw3.DeleteRelationRequest) (*dsw3.DeleteRelationResponse, error)
func (*Writer) SetObject ¶
func (s *Writer) SetObject(ctx context.Context, req *dsw3.SetObjectRequest) (*dsw3.SetObjectResponse, error)
SetObject.
func (*Writer) SetRelation ¶
func (s *Writer) SetRelation(ctx context.Context, req *dsw3.SetRelationRequest) (*dsw3.SetRelationResponse, error)
SetRelation.