-
Notifications
You must be signed in to change notification settings - Fork 52
/
model.go
29 lines (24 loc) · 926 Bytes
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2021 IBM Corp.
// SPDX-License-Identifier: Apache-2.0
package policymanager
import (
"fybrik.io/fybrik/pkg/model/datacatalog"
"fybrik.io/fybrik/pkg/model/taxonomy"
)
// RequestAction describes the reason for accessing the data, e.g., read/write/delete, where the data is processed or written to
type RequestAction struct {
ActionType taxonomy.DataFlow `json:"actionType"`
ProcessingLocation taxonomy.ProcessingLocation `json:"processingLocation,omitempty"`
Destination string `json:"destination,omitempty"`
}
// Asset metadata
type Resource struct {
ID taxonomy.AssetID `json:"id"`
Metadata *datacatalog.ResourceMetadata `json:"metadata,omitempty"`
}
// Result of policy evaluation
type ResultItem struct {
// The policy on which the decision was based
Policy string `json:"policy"`
Action taxonomy.Action `json:"action"`
}