Documentation
¶
Index ¶
- Variables
- func AliasesForIdentity(identity elemental.Identity) []string
- func AllIdentities() []elemental.Identity
- func Manager() elemental.ModelManager
- func ModelVersion() float64
- func OpenAPIJSON(includeExtensions bool) ([]byte, string, error)
- func OpenAPIYAML(includeExtensions bool) ([]byte, string, error)
- func ValidateNonEmptyList[T any](attribute string, list []T) error
- func ValidatePrincipal(principal *Principal) error
- func ValidateRego(attribute string, code string) error
- type AlertEvent
- func (*AlertEvent) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *AlertEvent) BleveType() string
- func (o *AlertEvent) DeepCopy() *AlertEvent
- func (o *AlertEvent) DeepCopyInto(out *AlertEvent)
- func (o *AlertEvent) GetBSON() (any, error)
- func (o *AlertEvent) SetBSON(raw bson.Raw) error
- func (*AlertEvent) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *AlertEvent) Validate() error
- func (o *AlertEvent) ValueForAttribute(name string) any
- type Analyzer
- func (*Analyzer) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Analyzer) BleveType() string
- func (o *Analyzer) DeepCopy() *Analyzer
- func (o *Analyzer) DeepCopyInto(out *Analyzer)
- func (o *Analyzer) DefaultOrder() []string
- func (o *Analyzer) Doc() string
- func (o *Analyzer) GetBSON() (any, error)
- func (o *Analyzer) GetNamespace() string
- func (o *Analyzer) Identifier() string
- func (o *Analyzer) Identity() elemental.Identity
- func (o *Analyzer) Patch(sparse elemental.SparseIdentifiable)
- func (o *Analyzer) SetBSON(raw bson.Raw) error
- func (o *Analyzer) SetIdentifier(id string)
- func (o *Analyzer) SetNamespace(namespace string)
- func (*Analyzer) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Analyzer) String() string
- func (o *Analyzer) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *Analyzer) Validate() error
- func (o *Analyzer) ValueForAttribute(name string) any
- func (o *Analyzer) Version() int
- type AnalyzerModel
- func (*AnalyzerModel) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *AnalyzerModel) BleveType() string
- func (o *AnalyzerModel) DeepCopy() *AnalyzerModel
- func (o *AnalyzerModel) DeepCopyInto(out *AnalyzerModel)
- func (o *AnalyzerModel) GetBSON() (any, error)
- func (o *AnalyzerModel) SetBSON(raw bson.Raw) error
- func (*AnalyzerModel) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *AnalyzerModel) Validate() error
- func (o *AnalyzerModel) ValueForAttribute(name string) any
- type AnalyzersList
- func (o AnalyzersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o AnalyzersList) Copy() elemental.Identifiables
- func (o AnalyzersList) DefaultOrder() []string
- func (o AnalyzersList) Identity() elemental.Identity
- func (o AnalyzersList) List() elemental.IdentifiablesList
- func (o AnalyzersList) ToSparse(fields ...string) elemental.Identifiables
- func (o AnalyzersList) Version() int
- type Detector
- func (*Detector) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Detector) BleveType() string
- func (o *Detector) DeepCopy() *Detector
- func (o *Detector) DeepCopyInto(out *Detector)
- func (o *Detector) GetBSON() (any, error)
- func (o *Detector) SetBSON(raw bson.Raw) error
- func (*Detector) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Detector) Validate() error
- func (o *Detector) ValueForAttribute(name string) any
- type Extraction
- func (*Extraction) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Extraction) BleveType() string
- func (o *Extraction) DeepCopy() *Extraction
- func (o *Extraction) DeepCopyInto(out *Extraction)
- func (o *Extraction) GetBSON() (any, error)
- func (o *Extraction) SetBSON(raw bson.Raw) error
- func (*Extraction) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Extraction) Validate() error
- func (o *Extraction) ValueForAttribute(name string) any
- type ExtractionInformation
- func (*ExtractionInformation) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *ExtractionInformation) BleveType() string
- func (o *ExtractionInformation) DeepCopy() *ExtractionInformation
- func (o *ExtractionInformation) DeepCopyInto(out *ExtractionInformation)
- func (o *ExtractionInformation) GetBSON() (any, error)
- func (o *ExtractionInformation) SetBSON(raw bson.Raw) error
- func (*ExtractionInformation) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *ExtractionInformation) Validate() error
- func (o *ExtractionInformation) ValueForAttribute(name string) any
- type ExtractionRequest
- func (*ExtractionRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *ExtractionRequest) BleveType() string
- func (o *ExtractionRequest) DeepCopy() *ExtractionRequest
- func (o *ExtractionRequest) DeepCopyInto(out *ExtractionRequest)
- func (o *ExtractionRequest) GetBSON() (any, error)
- func (o *ExtractionRequest) SetBSON(raw bson.Raw) error
- func (*ExtractionRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *ExtractionRequest) Validate() error
- func (o *ExtractionRequest) ValueForAttribute(name string) any
- type ExtractionSummary
- func (*ExtractionSummary) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *ExtractionSummary) BleveType() string
- func (o *ExtractionSummary) DeepCopy() *ExtractionSummary
- func (o *ExtractionSummary) DeepCopyInto(out *ExtractionSummary)
- func (o *ExtractionSummary) GetBSON() (any, error)
- func (o *ExtractionSummary) SetBSON(raw bson.Raw) error
- func (*ExtractionSummary) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *ExtractionSummary) Validate() error
- func (o *ExtractionSummary) ValueForAttribute(name string) any
- type LatenciesList
- func (o LatenciesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o LatenciesList) Copy() elemental.Identifiables
- func (o LatenciesList) DefaultOrder() []string
- func (o LatenciesList) Identity() elemental.Identity
- func (o LatenciesList) List() elemental.IdentifiablesList
- func (o LatenciesList) ToSparse(fields ...string) elemental.Identifiables
- func (o LatenciesList) Version() int
- type Latency
- func (*Latency) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Latency) BleveType() string
- func (o *Latency) DeepCopy() *Latency
- func (o *Latency) DeepCopyInto(out *Latency)
- func (o *Latency) DefaultOrder() []string
- func (o *Latency) Doc() string
- func (o *Latency) GetBSON() (any, error)
- func (o *Latency) Identifier() string
- func (o *Latency) Identity() elemental.Identity
- func (o *Latency) Patch(sparse elemental.SparseIdentifiable)
- func (o *Latency) SetBSON(raw bson.Raw) error
- func (o *Latency) SetIdentifier(id string)
- func (*Latency) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Latency) String() string
- func (o *Latency) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *Latency) Validate() error
- func (o *Latency) ValueForAttribute(name string) any
- func (o *Latency) Version() int
- type Modality
- func (*Modality) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Modality) BleveType() string
- func (o *Modality) DeepCopy() *Modality
- func (o *Modality) DeepCopyInto(out *Modality)
- func (o *Modality) GetBSON() (any, error)
- func (o *Modality) SetBSON(raw bson.Raw) error
- func (*Modality) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Modality) Validate() error
- func (o *Modality) ValueForAttribute(name string) any
- type PoliceExternalUser
- func (*PoliceExternalUser) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *PoliceExternalUser) BleveType() string
- func (o *PoliceExternalUser) DeepCopy() *PoliceExternalUser
- func (o *PoliceExternalUser) DeepCopyInto(out *PoliceExternalUser)
- func (o *PoliceExternalUser) GetBSON() (any, error)
- func (o *PoliceExternalUser) SetBSON(raw bson.Raw) error
- func (*PoliceExternalUser) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *PoliceExternalUser) Validate() error
- func (o *PoliceExternalUser) ValueForAttribute(name string) any
- type PoliceRequest
- func (*PoliceRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *PoliceRequest) BleveType() string
- func (o *PoliceRequest) DeepCopy() *PoliceRequest
- func (o *PoliceRequest) DeepCopyInto(out *PoliceRequest)
- func (o *PoliceRequest) DefaultOrder() []string
- func (o *PoliceRequest) Doc() string
- func (o *PoliceRequest) GetBSON() (any, error)
- func (o *PoliceRequest) Identifier() string
- func (o *PoliceRequest) Identity() elemental.Identity
- func (o *PoliceRequest) Patch(sparse elemental.SparseIdentifiable)
- func (o *PoliceRequest) SetBSON(raw bson.Raw) error
- func (o *PoliceRequest) SetIdentifier(id string)
- func (*PoliceRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *PoliceRequest) String() string
- func (o *PoliceRequest) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *PoliceRequest) Validate() error
- func (o *PoliceRequest) ValueForAttribute(name string) any
- func (o *PoliceRequest) Version() int
- type PoliceRequestAnonymizationValue
- type PoliceRequestTypeValue
- type PoliceRequestsList
- func (o PoliceRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o PoliceRequestsList) Copy() elemental.Identifiables
- func (o PoliceRequestsList) DefaultOrder() []string
- func (o PoliceRequestsList) Identity() elemental.Identity
- func (o PoliceRequestsList) List() elemental.IdentifiablesList
- func (o PoliceRequestsList) ToSparse(fields ...string) elemental.Identifiables
- func (o PoliceRequestsList) Version() int
- type PoliceResponse
- func (*PoliceResponse) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *PoliceResponse) BleveType() string
- func (o *PoliceResponse) DeepCopy() *PoliceResponse
- func (o *PoliceResponse) DeepCopyInto(out *PoliceResponse)
- func (o *PoliceResponse) DefaultOrder() []string
- func (o *PoliceResponse) Doc() string
- func (o *PoliceResponse) GetBSON() (any, error)
- func (o *PoliceResponse) GetNamespace() string
- func (o *PoliceResponse) Identifier() string
- func (o *PoliceResponse) Identity() elemental.Identity
- func (o *PoliceResponse) Patch(sparse elemental.SparseIdentifiable)
- func (o *PoliceResponse) SetBSON(raw bson.Raw) error
- func (o *PoliceResponse) SetIdentifier(id string)
- func (o *PoliceResponse) SetNamespace(namespace string)
- func (*PoliceResponse) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *PoliceResponse) String() string
- func (o *PoliceResponse) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *PoliceResponse) Validate() error
- func (o *PoliceResponse) ValueForAttribute(name string) any
- func (o *PoliceResponse) Version() int
- type PoliceResponseDecisionValue
- type PoliceResponseTypeValue
- type PoliceResponsesList
- func (o PoliceResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o PoliceResponsesList) Copy() elemental.Identifiables
- func (o PoliceResponsesList) DefaultOrder() []string
- func (o PoliceResponsesList) Identity() elemental.Identity
- func (o PoliceResponsesList) List() elemental.IdentifiablesList
- func (o PoliceResponsesList) ToSparse(fields ...string) elemental.Identifiables
- func (o PoliceResponsesList) Version() int
- type Principal
- func (*Principal) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Principal) BleveType() string
- func (o *Principal) DeepCopy() *Principal
- func (o *Principal) DeepCopyInto(out *Principal)
- func (o *Principal) DefaultOrder() []string
- func (o *Principal) Doc() string
- func (o *Principal) GetBSON() (any, error)
- func (o *Principal) Identifier() string
- func (o *Principal) Identity() elemental.Identity
- func (o *Principal) Patch(sparse elemental.SparseIdentifiable)
- func (o *Principal) SetBSON(raw bson.Raw) error
- func (o *Principal) SetIdentifier(id string)
- func (*Principal) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Principal) String() string
- func (o *Principal) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *Principal) Validate() error
- func (o *Principal) ValueForAttribute(name string) any
- func (o *Principal) Version() int
- type PrincipalApp
- func (*PrincipalApp) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *PrincipalApp) BleveType() string
- func (o *PrincipalApp) DeepCopy() *PrincipalApp
- func (o *PrincipalApp) DeepCopyInto(out *PrincipalApp)
- func (o *PrincipalApp) DefaultOrder() []string
- func (o *PrincipalApp) Doc() string
- func (o *PrincipalApp) GetBSON() (any, error)
- func (o *PrincipalApp) Identifier() string
- func (o *PrincipalApp) Identity() elemental.Identity
- func (o *PrincipalApp) Patch(sparse elemental.SparseIdentifiable)
- func (o *PrincipalApp) SetBSON(raw bson.Raw) error
- func (o *PrincipalApp) SetIdentifier(id string)
- func (*PrincipalApp) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *PrincipalApp) String() string
- func (o *PrincipalApp) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *PrincipalApp) Validate() error
- func (o *PrincipalApp) ValueForAttribute(name string) any
- func (o *PrincipalApp) Version() int
- type PrincipalAppsList
- func (o PrincipalAppsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o PrincipalAppsList) Copy() elemental.Identifiables
- func (o PrincipalAppsList) DefaultOrder() []string
- func (o PrincipalAppsList) Identity() elemental.Identity
- func (o PrincipalAppsList) List() elemental.IdentifiablesList
- func (o PrincipalAppsList) ToSparse(fields ...string) elemental.Identifiables
- func (o PrincipalAppsList) Version() int
- type PrincipalAuthTypeValue
- type PrincipalTypeValue
- type PrincipalUser
- func (*PrincipalUser) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *PrincipalUser) BleveType() string
- func (o *PrincipalUser) DeepCopy() *PrincipalUser
- func (o *PrincipalUser) DeepCopyInto(out *PrincipalUser)
- func (o *PrincipalUser) DefaultOrder() []string
- func (o *PrincipalUser) Doc() string
- func (o *PrincipalUser) GetBSON() (any, error)
- func (o *PrincipalUser) Identifier() string
- func (o *PrincipalUser) Identity() elemental.Identity
- func (o *PrincipalUser) Patch(sparse elemental.SparseIdentifiable)
- func (o *PrincipalUser) SetBSON(raw bson.Raw) error
- func (o *PrincipalUser) SetIdentifier(id string)
- func (*PrincipalUser) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *PrincipalUser) String() string
- func (o *PrincipalUser) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *PrincipalUser) Validate() error
- func (o *PrincipalUser) ValueForAttribute(name string) any
- func (o *PrincipalUser) Version() int
- type PrincipalUsersList
- func (o PrincipalUsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o PrincipalUsersList) Copy() elemental.Identifiables
- func (o PrincipalUsersList) DefaultOrder() []string
- func (o PrincipalUsersList) Identity() elemental.Identity
- func (o PrincipalUsersList) List() elemental.IdentifiablesList
- func (o PrincipalUsersList) ToSparse(fields ...string) elemental.Identifiables
- func (o PrincipalUsersList) Version() int
- type PrincipalsList
- func (o PrincipalsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o PrincipalsList) Copy() elemental.Identifiables
- func (o PrincipalsList) DefaultOrder() []string
- func (o PrincipalsList) Identity() elemental.Identity
- func (o PrincipalsList) List() elemental.IdentifiablesList
- func (o PrincipalsList) ToSparse(fields ...string) elemental.Identifiables
- func (o PrincipalsList) Version() int
- type Root
- func (*Root) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *Root) BleveType() string
- func (o *Root) DeepCopy() *Root
- func (o *Root) DeepCopyInto(out *Root)
- func (o *Root) DefaultOrder() []string
- func (o *Root) Doc() string
- func (o *Root) GetBSON() (any, error)
- func (o *Root) Identifier() string
- func (o *Root) Identity() elemental.Identity
- func (o *Root) SetBSON(raw bson.Raw) error
- func (o *Root) SetIdentifier(id string)
- func (*Root) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *Root) String() string
- func (o *Root) Validate() error
- func (o *Root) ValueForAttribute(name string) any
- func (o *Root) Version() int
- type ScanRequest
- func (*ScanRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *ScanRequest) BleveType() string
- func (o *ScanRequest) DeepCopy() *ScanRequest
- func (o *ScanRequest) DeepCopyInto(out *ScanRequest)
- func (o *ScanRequest) DefaultOrder() []string
- func (o *ScanRequest) Doc() string
- func (o *ScanRequest) GetBSON() (any, error)
- func (o *ScanRequest) Identifier() string
- func (o *ScanRequest) Identity() elemental.Identity
- func (o *ScanRequest) Patch(sparse elemental.SparseIdentifiable)
- func (o *ScanRequest) SetBSON(raw bson.Raw) error
- func (o *ScanRequest) SetIdentifier(id string)
- func (*ScanRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *ScanRequest) String() string
- func (o *ScanRequest) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *ScanRequest) Validate() error
- func (o *ScanRequest) ValueForAttribute(name string) any
- func (o *ScanRequest) Version() int
- type ScanRequestAnonymizationValue
- type ScanRequestTypeValue
- type ScanRequestsList
- func (o ScanRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o ScanRequestsList) Copy() elemental.Identifiables
- func (o ScanRequestsList) DefaultOrder() []string
- func (o ScanRequestsList) Identity() elemental.Identity
- func (o ScanRequestsList) List() elemental.IdentifiablesList
- func (o ScanRequestsList) ToSparse(fields ...string) elemental.Identifiables
- func (o ScanRequestsList) Version() int
- type ScanResponse
- func (*ScanResponse) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *ScanResponse) BleveType() string
- func (o *ScanResponse) DeepCopy() *ScanResponse
- func (o *ScanResponse) DeepCopyInto(out *ScanResponse)
- func (o *ScanResponse) DefaultOrder() []string
- func (o *ScanResponse) Doc() string
- func (o *ScanResponse) GetBSON() (any, error)
- func (o *ScanResponse) GetNamespace() string
- func (o *ScanResponse) Identifier() string
- func (o *ScanResponse) Identity() elemental.Identity
- func (o *ScanResponse) Patch(sparse elemental.SparseIdentifiable)
- func (o *ScanResponse) SetBSON(raw bson.Raw) error
- func (o *ScanResponse) SetIdentifier(id string)
- func (o *ScanResponse) SetNamespace(namespace string)
- func (*ScanResponse) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *ScanResponse) String() string
- func (o *ScanResponse) ToSparse(fields ...string) elemental.SparseIdentifiable
- func (o *ScanResponse) Validate() error
- func (o *ScanResponse) ValueForAttribute(name string) any
- func (o *ScanResponse) Version() int
- type ScanResponseDecisionValue
- type ScanResponseTypeValue
- type ScanResponsesList
- func (o ScanResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o ScanResponsesList) Copy() elemental.Identifiables
- func (o ScanResponsesList) DefaultOrder() []string
- func (o ScanResponsesList) Identity() elemental.Identity
- func (o ScanResponsesList) List() elemental.IdentifiablesList
- func (o ScanResponsesList) ToSparse(fields ...string) elemental.Identifiables
- func (o ScanResponsesList) Version() int
- type SparseAnalyzer
- func (o *SparseAnalyzer) DeepCopy() *SparseAnalyzer
- func (o *SparseAnalyzer) DeepCopyInto(out *SparseAnalyzer)
- func (o *SparseAnalyzer) GetBSON() (any, error)
- func (o *SparseAnalyzer) GetNamespace() (out string)
- func (o *SparseAnalyzer) Identifier() string
- func (o *SparseAnalyzer) Identity() elemental.Identity
- func (o *SparseAnalyzer) SetBSON(raw bson.Raw) error
- func (o *SparseAnalyzer) SetIdentifier(id string)
- func (o *SparseAnalyzer) SetNamespace(namespace string)
- func (o *SparseAnalyzer) ToPlain() elemental.PlainIdentifiable
- func (o *SparseAnalyzer) Version() int
- type SparseAnalyzersList
- func (o SparseAnalyzersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparseAnalyzersList) Copy() elemental.Identifiables
- func (o SparseAnalyzersList) DefaultOrder() []string
- func (o SparseAnalyzersList) Identity() elemental.Identity
- func (o SparseAnalyzersList) List() elemental.IdentifiablesList
- func (o SparseAnalyzersList) ToPlain() elemental.IdentifiablesList
- func (o SparseAnalyzersList) Version() int
- type SparseLatenciesList
- func (o SparseLatenciesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparseLatenciesList) Copy() elemental.Identifiables
- func (o SparseLatenciesList) DefaultOrder() []string
- func (o SparseLatenciesList) Identity() elemental.Identity
- func (o SparseLatenciesList) List() elemental.IdentifiablesList
- func (o SparseLatenciesList) ToPlain() elemental.IdentifiablesList
- func (o SparseLatenciesList) Version() int
- type SparseLatency
- func (o *SparseLatency) DeepCopy() *SparseLatency
- func (o *SparseLatency) DeepCopyInto(out *SparseLatency)
- func (o *SparseLatency) GetBSON() (any, error)
- func (o *SparseLatency) Identifier() string
- func (o *SparseLatency) Identity() elemental.Identity
- func (o *SparseLatency) SetBSON(raw bson.Raw) error
- func (o *SparseLatency) SetIdentifier(id string)
- func (o *SparseLatency) ToPlain() elemental.PlainIdentifiable
- func (o *SparseLatency) Version() int
- type SparsePoliceRequest
- func (o *SparsePoliceRequest) DeepCopy() *SparsePoliceRequest
- func (o *SparsePoliceRequest) DeepCopyInto(out *SparsePoliceRequest)
- func (o *SparsePoliceRequest) GetBSON() (any, error)
- func (o *SparsePoliceRequest) Identifier() string
- func (o *SparsePoliceRequest) Identity() elemental.Identity
- func (o *SparsePoliceRequest) SetBSON(raw bson.Raw) error
- func (o *SparsePoliceRequest) SetIdentifier(id string)
- func (o *SparsePoliceRequest) ToPlain() elemental.PlainIdentifiable
- func (o *SparsePoliceRequest) Version() int
- type SparsePoliceRequestsList
- func (o SparsePoliceRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparsePoliceRequestsList) Copy() elemental.Identifiables
- func (o SparsePoliceRequestsList) DefaultOrder() []string
- func (o SparsePoliceRequestsList) Identity() elemental.Identity
- func (o SparsePoliceRequestsList) List() elemental.IdentifiablesList
- func (o SparsePoliceRequestsList) ToPlain() elemental.IdentifiablesList
- func (o SparsePoliceRequestsList) Version() int
- type SparsePoliceResponse
- func (o *SparsePoliceResponse) DeepCopy() *SparsePoliceResponse
- func (o *SparsePoliceResponse) DeepCopyInto(out *SparsePoliceResponse)
- func (o *SparsePoliceResponse) GetBSON() (any, error)
- func (o *SparsePoliceResponse) GetNamespace() (out string)
- func (o *SparsePoliceResponse) Identifier() string
- func (o *SparsePoliceResponse) Identity() elemental.Identity
- func (o *SparsePoliceResponse) SetBSON(raw bson.Raw) error
- func (o *SparsePoliceResponse) SetIdentifier(id string)
- func (o *SparsePoliceResponse) SetNamespace(namespace string)
- func (o *SparsePoliceResponse) ToPlain() elemental.PlainIdentifiable
- func (o *SparsePoliceResponse) Version() int
- type SparsePoliceResponsesList
- func (o SparsePoliceResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparsePoliceResponsesList) Copy() elemental.Identifiables
- func (o SparsePoliceResponsesList) DefaultOrder() []string
- func (o SparsePoliceResponsesList) Identity() elemental.Identity
- func (o SparsePoliceResponsesList) List() elemental.IdentifiablesList
- func (o SparsePoliceResponsesList) ToPlain() elemental.IdentifiablesList
- func (o SparsePoliceResponsesList) Version() int
- type SparsePrincipal
- func (o *SparsePrincipal) DeepCopy() *SparsePrincipal
- func (o *SparsePrincipal) DeepCopyInto(out *SparsePrincipal)
- func (o *SparsePrincipal) GetBSON() (any, error)
- func (o *SparsePrincipal) Identifier() string
- func (o *SparsePrincipal) Identity() elemental.Identity
- func (o *SparsePrincipal) SetBSON(raw bson.Raw) error
- func (o *SparsePrincipal) SetIdentifier(id string)
- func (o *SparsePrincipal) ToPlain() elemental.PlainIdentifiable
- func (o *SparsePrincipal) Version() int
- type SparsePrincipalApp
- func (o *SparsePrincipalApp) DeepCopy() *SparsePrincipalApp
- func (o *SparsePrincipalApp) DeepCopyInto(out *SparsePrincipalApp)
- func (o *SparsePrincipalApp) GetBSON() (any, error)
- func (o *SparsePrincipalApp) Identifier() string
- func (o *SparsePrincipalApp) Identity() elemental.Identity
- func (o *SparsePrincipalApp) SetBSON(raw bson.Raw) error
- func (o *SparsePrincipalApp) SetIdentifier(id string)
- func (o *SparsePrincipalApp) ToPlain() elemental.PlainIdentifiable
- func (o *SparsePrincipalApp) Version() int
- type SparsePrincipalAppsList
- func (o SparsePrincipalAppsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparsePrincipalAppsList) Copy() elemental.Identifiables
- func (o SparsePrincipalAppsList) DefaultOrder() []string
- func (o SparsePrincipalAppsList) Identity() elemental.Identity
- func (o SparsePrincipalAppsList) List() elemental.IdentifiablesList
- func (o SparsePrincipalAppsList) ToPlain() elemental.IdentifiablesList
- func (o SparsePrincipalAppsList) Version() int
- type SparsePrincipalUser
- func (o *SparsePrincipalUser) DeepCopy() *SparsePrincipalUser
- func (o *SparsePrincipalUser) DeepCopyInto(out *SparsePrincipalUser)
- func (o *SparsePrincipalUser) GetBSON() (any, error)
- func (o *SparsePrincipalUser) Identifier() string
- func (o *SparsePrincipalUser) Identity() elemental.Identity
- func (o *SparsePrincipalUser) SetBSON(raw bson.Raw) error
- func (o *SparsePrincipalUser) SetIdentifier(id string)
- func (o *SparsePrincipalUser) ToPlain() elemental.PlainIdentifiable
- func (o *SparsePrincipalUser) Version() int
- type SparsePrincipalUsersList
- func (o SparsePrincipalUsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparsePrincipalUsersList) Copy() elemental.Identifiables
- func (o SparsePrincipalUsersList) DefaultOrder() []string
- func (o SparsePrincipalUsersList) Identity() elemental.Identity
- func (o SparsePrincipalUsersList) List() elemental.IdentifiablesList
- func (o SparsePrincipalUsersList) ToPlain() elemental.IdentifiablesList
- func (o SparsePrincipalUsersList) Version() int
- type SparsePrincipalsList
- func (o SparsePrincipalsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparsePrincipalsList) Copy() elemental.Identifiables
- func (o SparsePrincipalsList) DefaultOrder() []string
- func (o SparsePrincipalsList) Identity() elemental.Identity
- func (o SparsePrincipalsList) List() elemental.IdentifiablesList
- func (o SparsePrincipalsList) ToPlain() elemental.IdentifiablesList
- func (o SparsePrincipalsList) Version() int
- type SparseScanRequest
- func (o *SparseScanRequest) DeepCopy() *SparseScanRequest
- func (o *SparseScanRequest) DeepCopyInto(out *SparseScanRequest)
- func (o *SparseScanRequest) GetBSON() (any, error)
- func (o *SparseScanRequest) Identifier() string
- func (o *SparseScanRequest) Identity() elemental.Identity
- func (o *SparseScanRequest) SetBSON(raw bson.Raw) error
- func (o *SparseScanRequest) SetIdentifier(id string)
- func (o *SparseScanRequest) ToPlain() elemental.PlainIdentifiable
- func (o *SparseScanRequest) Version() int
- type SparseScanRequestsList
- func (o SparseScanRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparseScanRequestsList) Copy() elemental.Identifiables
- func (o SparseScanRequestsList) DefaultOrder() []string
- func (o SparseScanRequestsList) Identity() elemental.Identity
- func (o SparseScanRequestsList) List() elemental.IdentifiablesList
- func (o SparseScanRequestsList) ToPlain() elemental.IdentifiablesList
- func (o SparseScanRequestsList) Version() int
- type SparseScanResponse
- func (o *SparseScanResponse) DeepCopy() *SparseScanResponse
- func (o *SparseScanResponse) DeepCopyInto(out *SparseScanResponse)
- func (o *SparseScanResponse) GetBSON() (any, error)
- func (o *SparseScanResponse) GetNamespace() (out string)
- func (o *SparseScanResponse) Identifier() string
- func (o *SparseScanResponse) Identity() elemental.Identity
- func (o *SparseScanResponse) SetBSON(raw bson.Raw) error
- func (o *SparseScanResponse) SetIdentifier(id string)
- func (o *SparseScanResponse) SetNamespace(namespace string)
- func (o *SparseScanResponse) ToPlain() elemental.PlainIdentifiable
- func (o *SparseScanResponse) Version() int
- type SparseScanResponsesList
- func (o SparseScanResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
- func (o SparseScanResponsesList) Copy() elemental.Identifiables
- func (o SparseScanResponsesList) DefaultOrder() []string
- func (o SparseScanResponsesList) Identity() elemental.Identity
- func (o SparseScanResponsesList) List() elemental.IdentifiablesList
- func (o SparseScanResponsesList) ToPlain() elemental.IdentifiablesList
- func (o SparseScanResponsesList) Version() int
- type TextualDetection
- func (*TextualDetection) AttributeSpecifications() map[string]elemental.AttributeSpecification
- func (o *TextualDetection) BleveType() string
- func (o *TextualDetection) DeepCopy() *TextualDetection
- func (o *TextualDetection) DeepCopyInto(out *TextualDetection)
- func (o *TextualDetection) GetBSON() (any, error)
- func (o *TextualDetection) SetBSON(raw bson.Raw) error
- func (*TextualDetection) SpecificationForAttribute(name string) elemental.AttributeSpecification
- func (o *TextualDetection) Validate() error
- func (o *TextualDetection) ValueForAttribute(name string) any
- type TextualDetectionTypeValue
Constants ¶
This section is empty.
Variables ¶
var AlertEventAttributesMap = map[string]elemental.AttributeSpecification{ "AlertDefinition": { AllowedChoices: []string{}, ConvertedName: "AlertDefinition", Description: `The name of the alert definition that triggered the alert event.`, Exposed: true, Name: "alertDefinition", Required: true, Type: "string", }, "AlertDefinitionNamespace": { AllowedChoices: []string{}, ConvertedName: "AlertDefinitionNamespace", Description: `The namespace of the alert definition.`, Exposed: true, Name: "alertDefinitionNamespace", Type: "string", }, "Principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "Provider": { AllowedChoices: []string{}, ConvertedName: "Provider", Description: `The provider used that the alert came from.`, Exposed: true, Name: "provider", Type: "string", }, "Timestamp": { AllowedChoices: []string{}, Autogenerated: true, ConvertedName: "Timestamp", Description: `When the alert event was raised.`, Exposed: true, Name: "timestamp", ReadOnly: true, Type: "time", }, }
AlertEventAttributesMap represents the map of attribute for AlertEvent.
var AlertEventLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "alertdefinition": { AllowedChoices: []string{}, ConvertedName: "AlertDefinition", Description: `The name of the alert definition that triggered the alert event.`, Exposed: true, Name: "alertDefinition", Required: true, Type: "string", }, "alertdefinitionnamespace": { AllowedChoices: []string{}, ConvertedName: "AlertDefinitionNamespace", Description: `The namespace of the alert definition.`, Exposed: true, Name: "alertDefinitionNamespace", Type: "string", }, "principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "provider": { AllowedChoices: []string{}, ConvertedName: "Provider", Description: `The provider used that the alert came from.`, Exposed: true, Name: "provider", Type: "string", }, "timestamp": { AllowedChoices: []string{}, Autogenerated: true, ConvertedName: "Timestamp", Description: `When the alert event was raised.`, Exposed: true, Name: "timestamp", ReadOnly: true, Type: "time", }, }
AlertEventLowerCaseAttributesMap represents the map of attribute for AlertEvent.
var AnalyzerAttributesMap = map[string]elemental.AttributeSpecification{ "ID": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "Description": { AllowedChoices: []string{}, ConvertedName: "Description", Description: `The description of the analyzer.`, Exposed: true, Name: "description", Type: "string", }, "Detectors": { AllowedChoices: []string{}, ConvertedName: "Detectors", Description: `The detectors the analyzer can use.`, Exposed: true, Name: "detectors", SubType: "detector", Type: "refList", }, "Enabled": { AllowedChoices: []string{}, ConvertedName: "Enabled", Description: `Tell if the analyzer is enabled by default.`, Exposed: true, Name: "enabled", Type: "boolean", }, "Group": { AllowedChoices: []string{}, ConvertedName: "Group", Description: `The group the analyzer belongs to.`, Exposed: true, Name: "group", Type: "string", }, "Models": { AllowedChoices: []string{}, ConvertedName: "Models", Description: `The models used by the analyzer.`, Exposed: true, Name: "models", SubType: "analyzermodel", Type: "refList", }, "Name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the analyzer.`, Exposed: true, Name: "name", Type: "string", }, "Namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "Triggers": { AllowedChoices: []string{}, ConvertedName: "Triggers", Description: `A list of trigger or globl pattern that the analyzer will react on. A trigger is the detector Group and Name separated with a /.`, Exposed: true, Name: "triggers", SubType: "string", Type: "list", }, }
AnalyzerAttributesMap represents the map of attribute for Analyzer.
var AnalyzerIdentity = elemental.Identity{ Name: "analyzer", Category: "analyzers", Package: "proxy", Private: false, }
AnalyzerIdentity represents the Identity of the object.
var AnalyzerLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "id": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "description": { AllowedChoices: []string{}, ConvertedName: "Description", Description: `The description of the analyzer.`, Exposed: true, Name: "description", Type: "string", }, "detectors": { AllowedChoices: []string{}, ConvertedName: "Detectors", Description: `The detectors the analyzer can use.`, Exposed: true, Name: "detectors", SubType: "detector", Type: "refList", }, "enabled": { AllowedChoices: []string{}, ConvertedName: "Enabled", Description: `Tell if the analyzer is enabled by default.`, Exposed: true, Name: "enabled", Type: "boolean", }, "group": { AllowedChoices: []string{}, ConvertedName: "Group", Description: `The group the analyzer belongs to.`, Exposed: true, Name: "group", Type: "string", }, "models": { AllowedChoices: []string{}, ConvertedName: "Models", Description: `The models used by the analyzer.`, Exposed: true, Name: "models", SubType: "analyzermodel", Type: "refList", }, "name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the analyzer.`, Exposed: true, Name: "name", Type: "string", }, "namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "triggers": { AllowedChoices: []string{}, ConvertedName: "Triggers", Description: `A list of trigger or globl pattern that the analyzer will react on. A trigger is the detector Group and Name separated with a /.`, Exposed: true, Name: "triggers", SubType: "string", Type: "list", }, }
AnalyzerLowerCaseAttributesMap represents the map of attribute for Analyzer.
var AnalyzerModelAttributesMap = map[string]elemental.AttributeSpecification{ "Name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the model.`, Exposed: true, Name: "name", Type: "string", }, "Revision": { AllowedChoices: []string{}, ConvertedName: "Revision", Description: `The revision of the model.`, Exposed: true, Name: "revision", Type: "string", }, }
AnalyzerModelAttributesMap represents the map of attribute for AnalyzerModel.
var AnalyzerModelLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the model.`, Exposed: true, Name: "name", Type: "string", }, "revision": { AllowedChoices: []string{}, ConvertedName: "Revision", Description: `The revision of the model.`, Exposed: true, Name: "revision", Type: "string", }, }
AnalyzerModelLowerCaseAttributesMap represents the map of attribute for AnalyzerModel.
var DetectorAttributesMap = map[string]elemental.AttributeSpecification{ "Description": { AllowedChoices: []string{}, ConvertedName: "Description", Description: `The description of the detection.`, Exposed: true, Name: "description", Type: "string", }, "Group": { AllowedChoices: []string{}, ConvertedName: "Group", Description: `The group the detection belongs to.`, Exposed: true, Name: "group", Type: "string", }, "Label": { AllowedChoices: []string{}, ConvertedName: "Label", Description: `The label returned by the model.`, Exposed: true, Name: "label", Type: "string", }, "Name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the detection.`, Exposed: true, Name: "name", Type: "string", }, "Positional": { AllowedChoices: []string{}, ConvertedName: "Positional", Description: `Tell if the detection is positional.`, Exposed: true, Name: "positional", Type: "boolean", }, }
DetectorAttributesMap represents the map of attribute for Detector.
var DetectorLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "description": { AllowedChoices: []string{}, ConvertedName: "Description", Description: `The description of the detection.`, Exposed: true, Name: "description", Type: "string", }, "group": { AllowedChoices: []string{}, ConvertedName: "Group", Description: `The group the detection belongs to.`, Exposed: true, Name: "group", Type: "string", }, "label": { AllowedChoices: []string{}, ConvertedName: "Label", Description: `The label returned by the model.`, Exposed: true, Name: "label", Type: "string", }, "name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the detection.`, Exposed: true, Name: "name", Type: "string", }, "positional": { AllowedChoices: []string{}, ConvertedName: "Positional", Description: `Tell if the detection is positional.`, Exposed: true, Name: "positional", Type: "boolean", }, }
DetectorLowerCaseAttributesMap represents the map of attribute for Detector.
var ExtractionAttributesMap = map[string]elemental.AttributeSpecification{ "PIIs": { AllowedChoices: []string{}, BSONFieldName: "piis", ConvertedName: "PIIs", Description: `The PIIs found during classification.`, Exposed: true, Name: "PIIs", Stored: true, SubType: "map[string]float64", Type: "external", }, "Annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "Categories": { AllowedChoices: []string{}, BSONFieldName: "categories", ConvertedName: "Categories", Description: `The categories are remapping of the modalities in a more human friendly way.`, Exposed: true, Name: "categories", Stored: true, SubType: "modality", Type: "refList", }, "Confidentiality": { AllowedChoices: []string{}, BSONFieldName: "confidentiality", ConvertedName: "Confidentiality", Description: `The level of general confidentiality of the input.`, Exposed: true, Name: "confidentiality", Stored: true, Type: "float", }, "Data": { AllowedChoices: []string{}, BSONFieldName: "data", ConvertedName: "Data", Description: `The data extracted.`, Exposed: true, Name: "data", Stored: true, Type: "string", }, "Detections": { AllowedChoices: []string{}, BSONFieldName: "detections", ConvertedName: "Detections", Description: `The detections found while applying policies.`, Exposed: true, Name: "detections", Stored: true, SubType: "textualdetection", Type: "refList", }, "Exploits": { AllowedChoices: []string{}, BSONFieldName: "exploits", ConvertedName: "Exploits", Description: `The various exploits attempts.`, Exposed: true, Name: "exploits", Stored: true, SubType: "map[string]float64", Type: "external", }, "Hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the extraction.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "Intent": { AllowedChoices: []string{}, BSONFieldName: "intent", ConvertedName: "Intent", Description: `The estimated intent embodied into the text.`, Exposed: true, Name: "intent", Stored: true, SubType: "map[string]float64", Type: "external", }, "Internal": { AllowedChoices: []string{}, BSONFieldName: "internal", ConvertedName: "Internal", Description: `If true, this extraction is for internal use only. This can be used by agentic systems to mark an extraction as internal only as opposed to user facing.`, Exposed: true, Name: "internal", Stored: true, Type: "boolean", }, "IsFile": { AllowedChoices: []string{}, BSONFieldName: "isfile", ConvertedName: "IsFile", Description: `If true, the data of the extraction is a file.`, Exposed: true, Name: "isFile", Stored: true, Type: "boolean", }, "IsStored": { AllowedChoices: []string{}, BSONFieldName: "isstored", ConvertedName: "IsStored", Description: `If true, indicates that the file has been stored.`, Exposed: true, Name: "isStored", Stored: true, Type: "boolean", }, "Keywords": { AllowedChoices: []string{}, BSONFieldName: "keywords", ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", Stored: true, SubType: "map[string]float64", Type: "external", }, "Label": { AllowedChoices: []string{}, BSONFieldName: "label", ConvertedName: "Label", Description: `A means of distinguishing what was extracted, such as prompt, input file or code.`, Exposed: true, Name: "label", Stored: true, Type: "string", }, "Languages": { AllowedChoices: []string{}, BSONFieldName: "languages", ConvertedName: "Languages", Description: `The language of the classification.`, Exposed: true, Name: "languages", Stored: true, SubType: "map[string]float64", Type: "external", }, "Modalities": { AllowedChoices: []string{}, BSONFieldName: "modalities", ConvertedName: "Modalities", Description: `The modalities of data detected in the data.`, Exposed: true, Name: "modalities", Stored: true, SubType: "modality", Type: "refList", }, "OriginalData": { AllowedChoices: []string{}, ConvertedName: "OriginalData", Description: `This is an internal field and has no api meaning.`, Name: "originalData", Type: "string", }, "Relevance": { AllowedChoices: []string{}, BSONFieldName: "relevance", ConvertedName: "Relevance", Description: `The level of general organization relevance of the input.`, Exposed: true, Name: "relevance", Stored: true, Type: "float", }, "Secrets": { AllowedChoices: []string{}, BSONFieldName: "secrets", ConvertedName: "Secrets", Description: `The secrets found during classification.`, Exposed: true, Name: "secrets", Stored: true, SubType: "map[string]float64", Type: "external", }, "Topics": { AllowedChoices: []string{}, BSONFieldName: "topics", ConvertedName: "Topics", Description: `The topic of the classification.`, Exposed: true, Name: "topics", Stored: true, SubType: "map[string]float64", Type: "external", }, }
ExtractionAttributesMap represents the map of attribute for Extraction.
var ExtractionInformationAttributesMap = map[string]elemental.AttributeSpecification{ "N": { AllowedChoices: []string{}, ConvertedName: "N", Description: `The number of times it has been seen.`, Exposed: true, Name: "n", Type: "integer", }, }
ExtractionInformationAttributesMap represents the map of attribute for ExtractionInformation.
var ExtractionInformationLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "n": { AllowedChoices: []string{}, ConvertedName: "N", Description: `The number of times it has been seen.`, Exposed: true, Name: "n", Type: "integer", }, }
ExtractionInformationLowerCaseAttributesMap represents the map of attribute for ExtractionInformation.
var ExtractionLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "piis": { AllowedChoices: []string{}, BSONFieldName: "piis", ConvertedName: "PIIs", Description: `The PIIs found during classification.`, Exposed: true, Name: "PIIs", Stored: true, SubType: "map[string]float64", Type: "external", }, "annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "categories": { AllowedChoices: []string{}, BSONFieldName: "categories", ConvertedName: "Categories", Description: `The categories are remapping of the modalities in a more human friendly way.`, Exposed: true, Name: "categories", Stored: true, SubType: "modality", Type: "refList", }, "confidentiality": { AllowedChoices: []string{}, BSONFieldName: "confidentiality", ConvertedName: "Confidentiality", Description: `The level of general confidentiality of the input.`, Exposed: true, Name: "confidentiality", Stored: true, Type: "float", }, "data": { AllowedChoices: []string{}, BSONFieldName: "data", ConvertedName: "Data", Description: `The data extracted.`, Exposed: true, Name: "data", Stored: true, Type: "string", }, "detections": { AllowedChoices: []string{}, BSONFieldName: "detections", ConvertedName: "Detections", Description: `The detections found while applying policies.`, Exposed: true, Name: "detections", Stored: true, SubType: "textualdetection", Type: "refList", }, "exploits": { AllowedChoices: []string{}, BSONFieldName: "exploits", ConvertedName: "Exploits", Description: `The various exploits attempts.`, Exposed: true, Name: "exploits", Stored: true, SubType: "map[string]float64", Type: "external", }, "hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the extraction.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "intent": { AllowedChoices: []string{}, BSONFieldName: "intent", ConvertedName: "Intent", Description: `The estimated intent embodied into the text.`, Exposed: true, Name: "intent", Stored: true, SubType: "map[string]float64", Type: "external", }, "internal": { AllowedChoices: []string{}, BSONFieldName: "internal", ConvertedName: "Internal", Description: `If true, this extraction is for internal use only. This can be used by agentic systems to mark an extraction as internal only as opposed to user facing.`, Exposed: true, Name: "internal", Stored: true, Type: "boolean", }, "isfile": { AllowedChoices: []string{}, BSONFieldName: "isfile", ConvertedName: "IsFile", Description: `If true, the data of the extraction is a file.`, Exposed: true, Name: "isFile", Stored: true, Type: "boolean", }, "isstored": { AllowedChoices: []string{}, BSONFieldName: "isstored", ConvertedName: "IsStored", Description: `If true, indicates that the file has been stored.`, Exposed: true, Name: "isStored", Stored: true, Type: "boolean", }, "keywords": { AllowedChoices: []string{}, BSONFieldName: "keywords", ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", Stored: true, SubType: "map[string]float64", Type: "external", }, "label": { AllowedChoices: []string{}, BSONFieldName: "label", ConvertedName: "Label", Description: `A means of distinguishing what was extracted, such as prompt, input file or code.`, Exposed: true, Name: "label", Stored: true, Type: "string", }, "languages": { AllowedChoices: []string{}, BSONFieldName: "languages", ConvertedName: "Languages", Description: `The language of the classification.`, Exposed: true, Name: "languages", Stored: true, SubType: "map[string]float64", Type: "external", }, "modalities": { AllowedChoices: []string{}, BSONFieldName: "modalities", ConvertedName: "Modalities", Description: `The modalities of data detected in the data.`, Exposed: true, Name: "modalities", Stored: true, SubType: "modality", Type: "refList", }, "originaldata": { AllowedChoices: []string{}, ConvertedName: "OriginalData", Description: `This is an internal field and has no api meaning.`, Name: "originalData", Type: "string", }, "relevance": { AllowedChoices: []string{}, BSONFieldName: "relevance", ConvertedName: "Relevance", Description: `The level of general organization relevance of the input.`, Exposed: true, Name: "relevance", Stored: true, Type: "float", }, "secrets": { AllowedChoices: []string{}, BSONFieldName: "secrets", ConvertedName: "Secrets", Description: `The secrets found during classification.`, Exposed: true, Name: "secrets", Stored: true, SubType: "map[string]float64", Type: "external", }, "topics": { AllowedChoices: []string{}, BSONFieldName: "topics", ConvertedName: "Topics", Description: `The topic of the classification.`, Exposed: true, Name: "topics", Stored: true, SubType: "map[string]float64", Type: "external", }, }
ExtractionLowerCaseAttributesMap represents the map of attribute for Extraction.
var ExtractionRequestAttributesMap = map[string]elemental.AttributeSpecification{ "Annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "Data": { AllowedChoices: []string{}, ConvertedName: "Data", Description: `The binary data to request extraction for.`, Exposed: true, Name: "data", SubType: "[]byte", Type: "external", }, "Internal": { AllowedChoices: []string{}, BSONFieldName: "internal", ConvertedName: "Internal", Description: `If true, this extraction is for internal use only. This can be used by agentic systems to mark an extraction as internal only as opposed to user facing.`, Exposed: true, Name: "internal", Stored: true, Type: "boolean", }, "IsFile": { AllowedChoices: []string{}, BSONFieldName: "isfile", ConvertedName: "IsFile", Description: `If true, the data of the extraction is a file.`, Exposed: true, Name: "isFile", Stored: true, Type: "boolean", }, "IsStored": { AllowedChoices: []string{}, BSONFieldName: "isstored", ConvertedName: "IsStored", Description: `If true, indicates that the file has been stored.`, Exposed: true, Name: "isStored", Stored: true, Type: "boolean", }, "Label": { AllowedChoices: []string{}, BSONFieldName: "label", ConvertedName: "Label", Description: `A means of distinguishing what was extracted, such as prompt, input file or code.`, Exposed: true, Name: "label", Stored: true, Type: "string", }, "OriginalData": { AllowedChoices: []string{}, ConvertedName: "OriginalData", Description: `This is an internal field and has no api meaning.`, Name: "originalData", Type: "string", }, }
ExtractionRequestAttributesMap represents the map of attribute for ExtractionRequest.
var ExtractionRequestLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "data": { AllowedChoices: []string{}, ConvertedName: "Data", Description: `The binary data to request extraction for.`, Exposed: true, Name: "data", SubType: "[]byte", Type: "external", }, "internal": { AllowedChoices: []string{}, BSONFieldName: "internal", ConvertedName: "Internal", Description: `If true, this extraction is for internal use only. This can be used by agentic systems to mark an extraction as internal only as opposed to user facing.`, Exposed: true, Name: "internal", Stored: true, Type: "boolean", }, "isfile": { AllowedChoices: []string{}, BSONFieldName: "isfile", ConvertedName: "IsFile", Description: `If true, the data of the extraction is a file.`, Exposed: true, Name: "isFile", Stored: true, Type: "boolean", }, "isstored": { AllowedChoices: []string{}, BSONFieldName: "isstored", ConvertedName: "IsStored", Description: `If true, indicates that the file has been stored.`, Exposed: true, Name: "isStored", Stored: true, Type: "boolean", }, "label": { AllowedChoices: []string{}, BSONFieldName: "label", ConvertedName: "Label", Description: `A means of distinguishing what was extracted, such as prompt, input file or code.`, Exposed: true, Name: "label", Stored: true, Type: "string", }, "originaldata": { AllowedChoices: []string{}, ConvertedName: "OriginalData", Description: `This is an internal field and has no api meaning.`, Name: "originalData", Type: "string", }, }
ExtractionRequestLowerCaseAttributesMap represents the map of attribute for ExtractionRequest.
var ExtractionSummaryAttributesMap = map[string]elemental.AttributeSpecification{ "PIIs": { AllowedChoices: []string{}, BSONFieldName: "piis", ConvertedName: "PIIs", Description: `The PIIs found during classification.`, Exposed: true, Name: "PIIs", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Categories": { AllowedChoices: []string{}, BSONFieldName: "categories", ConvertedName: "Categories", Description: `The categories are remapping of the modalities in a more human friendly way.`, Exposed: true, Name: "categories", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Exploits": { AllowedChoices: []string{}, BSONFieldName: "exploits", ConvertedName: "Exploits", Description: `The various exploits attempts.`, Exposed: true, Name: "exploits", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Intent": { AllowedChoices: []string{}, BSONFieldName: "intent", ConvertedName: "Intent", Description: `The estimated intent embodied into the text.`, Exposed: true, Name: "intent", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Keywords": { AllowedChoices: []string{}, BSONFieldName: "keywords", ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Languages": { AllowedChoices: []string{}, BSONFieldName: "languages", ConvertedName: "Languages", Description: `The language of the classification.`, Exposed: true, Name: "languages", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Modalities": { AllowedChoices: []string{}, BSONFieldName: "modalities", ConvertedName: "Modalities", Description: `The modalities of data detected in the data.`, Exposed: true, Name: "modalities", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Secrets": { AllowedChoices: []string{}, BSONFieldName: "secrets", ConvertedName: "Secrets", Description: `The secrets found during classification.`, Exposed: true, Name: "secrets", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "Topics": { AllowedChoices: []string{}, BSONFieldName: "topics", ConvertedName: "Topics", Description: `The topic of the classification.`, Exposed: true, Name: "topics", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, }
ExtractionSummaryAttributesMap represents the map of attribute for ExtractionSummary.
var ExtractionSummaryLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "piis": { AllowedChoices: []string{}, BSONFieldName: "piis", ConvertedName: "PIIs", Description: `The PIIs found during classification.`, Exposed: true, Name: "PIIs", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "categories": { AllowedChoices: []string{}, BSONFieldName: "categories", ConvertedName: "Categories", Description: `The categories are remapping of the modalities in a more human friendly way.`, Exposed: true, Name: "categories", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "exploits": { AllowedChoices: []string{}, BSONFieldName: "exploits", ConvertedName: "Exploits", Description: `The various exploits attempts.`, Exposed: true, Name: "exploits", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "intent": { AllowedChoices: []string{}, BSONFieldName: "intent", ConvertedName: "Intent", Description: `The estimated intent embodied into the text.`, Exposed: true, Name: "intent", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "keywords": { AllowedChoices: []string{}, BSONFieldName: "keywords", ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "languages": { AllowedChoices: []string{}, BSONFieldName: "languages", ConvertedName: "Languages", Description: `The language of the classification.`, Exposed: true, Name: "languages", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "modalities": { AllowedChoices: []string{}, BSONFieldName: "modalities", ConvertedName: "Modalities", Description: `The modalities of data detected in the data.`, Exposed: true, Name: "modalities", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "secrets": { AllowedChoices: []string{}, BSONFieldName: "secrets", ConvertedName: "Secrets", Description: `The secrets found during classification.`, Exposed: true, Name: "secrets", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, "topics": { AllowedChoices: []string{}, BSONFieldName: "topics", ConvertedName: "Topics", Description: `The topic of the classification.`, Exposed: true, Name: "topics", Stored: true, SubType: "map[string]extractioninformation", Type: "external", }, }
ExtractionSummaryLowerCaseAttributesMap represents the map of attribute for ExtractionSummary.
var LatencyAttributesMap = map[string]elemental.AttributeSpecification{ "AccessPolicy": { AllowedChoices: []string{}, BSONFieldName: "accesspolicy", ConvertedName: "AccessPolicy", Description: `How much time it took to run the access policy in nanoseconds.`, Exposed: true, Name: "accessPolicy", Stored: true, Type: "integer", }, "Analysis": { AllowedChoices: []string{}, BSONFieldName: "analysis", ConvertedName: "Analysis", Description: `How much time it took to run content analysis in nanoseconds.`, Exposed: true, Name: "analysis", Stored: true, Type: "integer", }, "AssignPolicy": { AllowedChoices: []string{}, BSONFieldName: "assignpolicy", ConvertedName: "AssignPolicy", Description: `How much time it took to run the assign policy in nanoseconds.`, Exposed: true, Name: "assignPolicy", Stored: true, Type: "integer", }, "ContentPolicy": { AllowedChoices: []string{}, BSONFieldName: "contentpolicy", ConvertedName: "ContentPolicy", Description: `How much time it took to run content policy in nanoseconds.`, Exposed: true, Name: "contentPolicy", Stored: true, Type: "integer", }, "Extraction": { AllowedChoices: []string{}, BSONFieldName: "extraction", ConvertedName: "Extraction", Description: `How much time it took to run input or output extraction in nanoseconds.`, Exposed: true, Name: "extraction", Stored: true, Type: "integer", }, }
LatencyAttributesMap represents the map of attribute for Latency.
var LatencyIdentity = elemental.Identity{ Name: "latency", Category: "latencies", Package: "lain", Private: false, }
LatencyIdentity represents the Identity of the object.
var LatencyLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "accesspolicy": { AllowedChoices: []string{}, BSONFieldName: "accesspolicy", ConvertedName: "AccessPolicy", Description: `How much time it took to run the access policy in nanoseconds.`, Exposed: true, Name: "accessPolicy", Stored: true, Type: "integer", }, "analysis": { AllowedChoices: []string{}, BSONFieldName: "analysis", ConvertedName: "Analysis", Description: `How much time it took to run content analysis in nanoseconds.`, Exposed: true, Name: "analysis", Stored: true, Type: "integer", }, "assignpolicy": { AllowedChoices: []string{}, BSONFieldName: "assignpolicy", ConvertedName: "AssignPolicy", Description: `How much time it took to run the assign policy in nanoseconds.`, Exposed: true, Name: "assignPolicy", Stored: true, Type: "integer", }, "contentpolicy": { AllowedChoices: []string{}, BSONFieldName: "contentpolicy", ConvertedName: "ContentPolicy", Description: `How much time it took to run content policy in nanoseconds.`, Exposed: true, Name: "contentPolicy", Stored: true, Type: "integer", }, "extraction": { AllowedChoices: []string{}, BSONFieldName: "extraction", ConvertedName: "Extraction", Description: `How much time it took to run input or output extraction in nanoseconds.`, Exposed: true, Name: "extraction", Stored: true, Type: "integer", }, }
LatencyLowerCaseAttributesMap represents the map of attribute for Latency.
var ModalityAttributesMap = map[string]elemental.AttributeSpecification{ "Group": { AllowedChoices: []string{}, BSONFieldName: "group", ConvertedName: "Group", Description: `The group of data.`, Exposed: true, Name: "group", Required: true, Stored: true, Type: "string", }, "Type": { AllowedChoices: []string{}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of data.`, Exposed: true, Name: "type", Required: true, Stored: true, Type: "string", }, }
ModalityAttributesMap represents the map of attribute for Modality.
var ModalityLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "group": { AllowedChoices: []string{}, BSONFieldName: "group", ConvertedName: "Group", Description: `The group of data.`, Exposed: true, Name: "group", Required: true, Stored: true, Type: "string", }, "type": { AllowedChoices: []string{}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of data.`, Exposed: true, Name: "type", Required: true, Stored: true, Type: "string", }, }
ModalityLowerCaseAttributesMap represents the map of attribute for Modality.
var PoliceExternalUserAttributesMap = map[string]elemental.AttributeSpecification{ "Claims": { AllowedChoices: []string{}, ConvertedName: "Claims", Description: `List of claims extracted from the user query.`, Exposed: true, Name: "claims", Required: true, SubType: "string", Type: "list", }, "Name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the external user.`, Exposed: true, Name: "name", Required: true, Type: "string", }, }
PoliceExternalUserAttributesMap represents the map of attribute for PoliceExternalUser.
var PoliceExternalUserLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "claims": { AllowedChoices: []string{}, ConvertedName: "Claims", Description: `List of claims extracted from the user query.`, Exposed: true, Name: "claims", Required: true, SubType: "string", Type: "list", }, "name": { AllowedChoices: []string{}, ConvertedName: "Name", Description: `The name of the external user.`, Exposed: true, Name: "name", Required: true, Type: "string", }, }
PoliceExternalUserLowerCaseAttributesMap represents the map of attribute for PoliceExternalUser.
var PoliceRequestAttributesMap = map[string]elemental.AttributeSpecification{ "Annotations": { AllowedChoices: []string{}, ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", SubType: "map[string]string", Type: "external", }, "Anonymization": { AllowedChoices: []string{"FixedSize", "VariableSize"}, BSONFieldName: "anonymization", ConvertedName: "Anonymization", DefaultValue: PoliceRequestAnonymizationFixedSize, Description: `How to anonymize the data. If deanonymize is true, then VariablSize is required.`, Exposed: true, Name: "anonymization", Stored: true, Type: "enum", }, "BypassHash": { AllowedChoices: []string{}, BSONFieldName: "bypasshash", ConvertedName: "BypassHash", Description: `In the case of a contentPolicy that asks for a confirmation, this is the hash you must send back to bypass the block. This is only useful when a content policy has been set or is evaluated remotely.`, Exposed: true, Name: "bypassHash", Stored: true, Type: "string", }, "Extractions": { AllowedChoices: []string{}, ConvertedName: "Extractions", Description: `The extractions to request.`, Exposed: true, Name: "extractions", SubType: "extractionrequest", Type: "refList", }, "Messages": { AllowedChoices: []string{}, ConvertedName: "Messages", Description: `Messages to process and provide detections for. Use data in extractions for processing binary data.`, Exposed: true, Name: "messages", SubType: "string", Type: "list", }, "Provider": { AllowedChoices: []string{}, ConvertedName: "Provider", Description: `The name of the provider to use for policy resolutions. If not set, it will default to the principal name (the application itself).`, Exposed: true, Name: "provider", Type: "string", }, "Type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, "User": { AllowedChoices: []string{}, ConvertedName: "User", Description: `The user information that the PoliceRequest is passing on to the policy engine that can be used for additional policy resolution.`, Exposed: true, Name: "user", SubType: "policeexternaluser", Type: "ref", }, }
PoliceRequestAttributesMap represents the map of attribute for PoliceRequest.
var PoliceRequestIdentity = elemental.Identity{ Name: "policerequest", Category: "policerequests", Package: "proxy", Private: false, }
PoliceRequestIdentity represents the Identity of the object.
var PoliceRequestLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "annotations": { AllowedChoices: []string{}, ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", SubType: "map[string]string", Type: "external", }, "anonymization": { AllowedChoices: []string{"FixedSize", "VariableSize"}, BSONFieldName: "anonymization", ConvertedName: "Anonymization", DefaultValue: PoliceRequestAnonymizationFixedSize, Description: `How to anonymize the data. If deanonymize is true, then VariablSize is required.`, Exposed: true, Name: "anonymization", Stored: true, Type: "enum", }, "bypasshash": { AllowedChoices: []string{}, BSONFieldName: "bypasshash", ConvertedName: "BypassHash", Description: `In the case of a contentPolicy that asks for a confirmation, this is the hash you must send back to bypass the block. This is only useful when a content policy has been set or is evaluated remotely.`, Exposed: true, Name: "bypassHash", Stored: true, Type: "string", }, "extractions": { AllowedChoices: []string{}, ConvertedName: "Extractions", Description: `The extractions to request.`, Exposed: true, Name: "extractions", SubType: "extractionrequest", Type: "refList", }, "messages": { AllowedChoices: []string{}, ConvertedName: "Messages", Description: `Messages to process and provide detections for. Use data in extractions for processing binary data.`, Exposed: true, Name: "messages", SubType: "string", Type: "list", }, "provider": { AllowedChoices: []string{}, ConvertedName: "Provider", Description: `The name of the provider to use for policy resolutions. If not set, it will default to the principal name (the application itself).`, Exposed: true, Name: "provider", Type: "string", }, "type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, "user": { AllowedChoices: []string{}, ConvertedName: "User", Description: `The user information that the PoliceRequest is passing on to the policy engine that can be used for additional policy resolution.`, Exposed: true, Name: "user", SubType: "policeexternaluser", Type: "ref", }, }
PoliceRequestLowerCaseAttributesMap represents the map of attribute for PoliceRequest.
var PoliceResponseAttributesMap = map[string]elemental.AttributeSpecification{ "ID": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "Alerts": { AllowedChoices: []string{}, BSONFieldName: "alerts", ConvertedName: "Alerts", Description: `List of alerts that got raised during the policy resolution.`, Exposed: true, Name: "alerts", Stored: true, SubType: "alertevent", Type: "refList", }, "Annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the log.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "Client": { AllowedChoices: []string{}, BSONFieldName: "client", ConvertedName: "Client", Description: `The client used to send the request.`, Exposed: true, Name: "client", Stored: true, Type: "string", }, "ClientVersion": { AllowedChoices: []string{}, BSONFieldName: "clientversion", ConvertedName: "ClientVersion", Description: `The version of the client used to send the request.`, Exposed: true, Name: "clientVersion", Stored: true, Type: "string", }, "Decision": { AllowedChoices: []string{"Deny", "Allow", "Ask", "Bypassed", "ForbiddenUser"}, BSONFieldName: "decision", ConvertedName: "Decision", Description: `Tell what was the decision about the data.`, Exposed: true, Name: "decision", Stored: true, Type: "enum", }, "Extractions": { AllowedChoices: []string{}, BSONFieldName: "extractions", ConvertedName: "Extractions", Description: `The extractions to log.`, Exposed: true, Name: "extractions", Stored: true, SubType: "extraction", Type: "refList", }, "Hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the input.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "Latency": { AllowedChoices: []string{}, BSONFieldName: "latency", ConvertedName: "Latency", Description: `Information about latency of various stage of request and response.`, Exposed: true, Name: "latency", Stored: true, SubType: "latency", Type: "ref", }, "Namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "PipelineName": { AllowedChoices: []string{}, BSONFieldName: "pipelinename", ConvertedName: "PipelineName", Description: `The name of the particular pipeline that extracted the text.`, Exposed: true, Name: "pipelineName", Stored: true, Type: "string", }, "Principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "Provider": { AllowedChoices: []string{}, BSONFieldName: "provider", ConvertedName: "Provider", Description: `the provider to use.`, Exposed: true, Name: "provider", Stored: true, Type: "string", }, "Reasons": { AllowedChoices: []string{}, BSONFieldName: "reasons", ConvertedName: "Reasons", Description: `The various reasons returned by the policy engine.`, Exposed: true, Name: "reasons", Stored: true, SubType: "string", Type: "list", }, "Summary": { AllowedChoices: []string{}, BSONFieldName: "summary", ConvertedName: "Summary", Description: `The summary of the extractions.`, Exposed: true, Name: "summary", Stored: true, SubType: "extractionsummary", Type: "ref", }, "Time": { AllowedChoices: []string{}, ConvertedName: "Time", Description: `Set the time of the message request.`, Exposed: true, Name: "time", Type: "time", }, "Type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
PoliceResponseAttributesMap represents the map of attribute for PoliceResponse.
var PoliceResponseIdentity = elemental.Identity{ Name: "policeresponse", Category: "policeresponses", Package: "proxy", Private: false, }
PoliceResponseIdentity represents the Identity of the object.
var PoliceResponseLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "id": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "alerts": { AllowedChoices: []string{}, BSONFieldName: "alerts", ConvertedName: "Alerts", Description: `List of alerts that got raised during the policy resolution.`, Exposed: true, Name: "alerts", Stored: true, SubType: "alertevent", Type: "refList", }, "annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the log.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "client": { AllowedChoices: []string{}, BSONFieldName: "client", ConvertedName: "Client", Description: `The client used to send the request.`, Exposed: true, Name: "client", Stored: true, Type: "string", }, "clientversion": { AllowedChoices: []string{}, BSONFieldName: "clientversion", ConvertedName: "ClientVersion", Description: `The version of the client used to send the request.`, Exposed: true, Name: "clientVersion", Stored: true, Type: "string", }, "decision": { AllowedChoices: []string{"Deny", "Allow", "Ask", "Bypassed", "ForbiddenUser"}, BSONFieldName: "decision", ConvertedName: "Decision", Description: `Tell what was the decision about the data.`, Exposed: true, Name: "decision", Stored: true, Type: "enum", }, "extractions": { AllowedChoices: []string{}, BSONFieldName: "extractions", ConvertedName: "Extractions", Description: `The extractions to log.`, Exposed: true, Name: "extractions", Stored: true, SubType: "extraction", Type: "refList", }, "hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the input.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "latency": { AllowedChoices: []string{}, BSONFieldName: "latency", ConvertedName: "Latency", Description: `Information about latency of various stage of request and response.`, Exposed: true, Name: "latency", Stored: true, SubType: "latency", Type: "ref", }, "namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "pipelinename": { AllowedChoices: []string{}, BSONFieldName: "pipelinename", ConvertedName: "PipelineName", Description: `The name of the particular pipeline that extracted the text.`, Exposed: true, Name: "pipelineName", Stored: true, Type: "string", }, "principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "provider": { AllowedChoices: []string{}, BSONFieldName: "provider", ConvertedName: "Provider", Description: `the provider to use.`, Exposed: true, Name: "provider", Stored: true, Type: "string", }, "reasons": { AllowedChoices: []string{}, BSONFieldName: "reasons", ConvertedName: "Reasons", Description: `The various reasons returned by the policy engine.`, Exposed: true, Name: "reasons", Stored: true, SubType: "string", Type: "list", }, "summary": { AllowedChoices: []string{}, BSONFieldName: "summary", ConvertedName: "Summary", Description: `The summary of the extractions.`, Exposed: true, Name: "summary", Stored: true, SubType: "extractionsummary", Type: "ref", }, "time": { AllowedChoices: []string{}, ConvertedName: "Time", Description: `Set the time of the message request.`, Exposed: true, Name: "time", Type: "time", }, "type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
PoliceResponseLowerCaseAttributesMap represents the map of attribute for PoliceResponse.
var PrincipalAppAttributesMap = map[string]elemental.AttributeSpecification{ "Labels": { AllowedChoices: []string{}, BSONFieldName: "labels", ConvertedName: "Labels", Description: `The list of labels attached to an application request.`, Exposed: true, Name: "labels", Stored: true, SubType: "string", Type: "list", }, "Name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `The name of the application.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, "Tier": { AllowedChoices: []string{}, BSONFieldName: "tier", ConvertedName: "Tier", Description: `The tier of the application request.`, Exposed: true, Name: "tier", Stored: true, Type: "string", }, }
PrincipalAppAttributesMap represents the map of attribute for PrincipalApp.
var PrincipalAppIdentity = elemental.Identity{ Name: "principalapp", Category: "principalapps", Package: "colektor", Private: false, }
PrincipalAppIdentity represents the Identity of the object.
var PrincipalAppLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "labels": { AllowedChoices: []string{}, BSONFieldName: "labels", ConvertedName: "Labels", Description: `The list of labels attached to an application request.`, Exposed: true, Name: "labels", Stored: true, SubType: "string", Type: "list", }, "name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `The name of the application.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, "tier": { AllowedChoices: []string{}, BSONFieldName: "tier", ConvertedName: "Tier", Description: `The tier of the application request.`, Exposed: true, Name: "tier", Stored: true, Type: "string", }, }
PrincipalAppLowerCaseAttributesMap represents the map of attribute for PrincipalApp.
var PrincipalAttributesMap = map[string]elemental.AttributeSpecification{ "App": { AllowedChoices: []string{}, BSONFieldName: "app", ConvertedName: "App", Description: `The application principal information if type is App.`, Exposed: true, Name: "app", Stored: true, SubType: "principalapp", Type: "ref", }, "AuthType": { AllowedChoices: []string{"Certificate", "UserToken", "AppToken", "Hostname", "Token", "TierToken", "External"}, BSONFieldName: "authtype", ConvertedName: "AuthType", Description: `The type of authentication.`, Exposed: true, Name: "authType", Stored: true, Type: "enum", }, "Claims": { AllowedChoices: []string{}, BSONFieldName: "claims", ConvertedName: "Claims", Description: `List of claims extracted from the user query.`, Exposed: true, Name: "claims", Stored: true, SubType: "string", Type: "list", }, "Team": { AllowedChoices: []string{}, BSONFieldName: "team", ConvertedName: "Team", Description: `The team that was used to authorize the request.`, Exposed: true, Name: "team", Stored: true, Type: "string", }, "TokenName": { AllowedChoices: []string{}, BSONFieldName: "tokenname", ConvertedName: "TokenName", Description: `The name of the token, if any.`, Exposed: true, Name: "tokenName", Stored: true, Type: "string", }, "Type": { AllowedChoices: []string{"User", "App"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of principal.`, Exposed: true, Name: "type", Required: true, Stored: true, Type: "enum", }, "User": { AllowedChoices: []string{}, BSONFieldName: "user", ConvertedName: "User", Description: `The user principal information if type is User.`, Exposed: true, Name: "user", Stored: true, SubType: "principaluser", Type: "ref", }, }
PrincipalAttributesMap represents the map of attribute for Principal.
var PrincipalIdentity = elemental.Identity{ Name: "principal", Category: "principals", Package: "colektor", Private: false, }
PrincipalIdentity represents the Identity of the object.
var PrincipalLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "app": { AllowedChoices: []string{}, BSONFieldName: "app", ConvertedName: "App", Description: `The application principal information if type is App.`, Exposed: true, Name: "app", Stored: true, SubType: "principalapp", Type: "ref", }, "authtype": { AllowedChoices: []string{"Certificate", "UserToken", "AppToken", "Hostname", "Token", "TierToken", "External"}, BSONFieldName: "authtype", ConvertedName: "AuthType", Description: `The type of authentication.`, Exposed: true, Name: "authType", Stored: true, Type: "enum", }, "claims": { AllowedChoices: []string{}, BSONFieldName: "claims", ConvertedName: "Claims", Description: `List of claims extracted from the user query.`, Exposed: true, Name: "claims", Stored: true, SubType: "string", Type: "list", }, "team": { AllowedChoices: []string{}, BSONFieldName: "team", ConvertedName: "Team", Description: `The team that was used to authorize the request.`, Exposed: true, Name: "team", Stored: true, Type: "string", }, "tokenname": { AllowedChoices: []string{}, BSONFieldName: "tokenname", ConvertedName: "TokenName", Description: `The name of the token, if any.`, Exposed: true, Name: "tokenName", Stored: true, Type: "string", }, "type": { AllowedChoices: []string{"User", "App"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of principal.`, Exposed: true, Name: "type", Required: true, Stored: true, Type: "enum", }, "user": { AllowedChoices: []string{}, BSONFieldName: "user", ConvertedName: "User", Description: `The user principal information if type is User.`, Exposed: true, Name: "user", Stored: true, SubType: "principaluser", Type: "ref", }, }
PrincipalLowerCaseAttributesMap represents the map of attribute for Principal.
var PrincipalUserAttributesMap = map[string]elemental.AttributeSpecification{ "Name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `Identification bit that will be used to identify the origin of the request.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, }
PrincipalUserAttributesMap represents the map of attribute for PrincipalUser.
var PrincipalUserIdentity = elemental.Identity{ Name: "principaluser", Category: "principalusers", Package: "colektor", Private: false, }
PrincipalUserIdentity represents the Identity of the object.
var PrincipalUserLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `Identification bit that will be used to identify the origin of the request.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, }
PrincipalUserLowerCaseAttributesMap represents the map of attribute for PrincipalUser.
var RootAttributesMap = map[string]elemental.AttributeSpecification{}
RootAttributesMap represents the map of attribute for Root.
var RootIdentity = elemental.Identity{ Name: "root", Category: "root", Package: "root", Private: false, }
RootIdentity represents the Identity of the object.
var RootLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{}
RootLowerCaseAttributesMap represents the map of attribute for Root.
var ScanRequestAttributesMap = map[string]elemental.AttributeSpecification{ "AccessPolicy": { AllowedChoices: []string{}, ConvertedName: "AccessPolicy", Description: `AccessPolicy allows to pass optional Rego access policy. If not set, The action is always Allow, If it is set, it will be run, and the final decision will be computed based on that policy. If the rego code does not start with package main, then the needed classic package definition and acuvity imports will be added automatically. If the code starts with package main, then everything remains untouched.`, Exposed: true, Name: "accessPolicy", Type: "string", }, "Analyzers": { AllowedChoices: []string{}, ConvertedName: "Analyzers", Description: `The name of the analyzers to run by the pipelines. If empty, it means all of them. Possible values are PIIs, Secrets, Topics, Confidentiality, Exploits.`, Exposed: true, Name: "analyzers", SubType: "string", Type: "list", }, "Annotations": { AllowedChoices: []string{}, ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", SubType: "map[string]string", Type: "external", }, "Anonymization": { AllowedChoices: []string{"FixedSize", "VariableSize"}, BSONFieldName: "anonymization", ConvertedName: "Anonymization", DefaultValue: ScanRequestAnonymizationFixedSize, Description: `How to anonymize the data. If deanonymize is true, then VariablSize is required.`, Exposed: true, Name: "anonymization", Stored: true, Type: "enum", }, "BypassHash": { AllowedChoices: []string{}, BSONFieldName: "bypasshash", ConvertedName: "BypassHash", Description: `In the case of a contentPolicy that asks for a confirmation, this is the hash you must send back to bypass the block. This is only useful when a content policy has been set or is evaluated remotely.`, Exposed: true, Name: "bypassHash", Stored: true, Type: "string", }, "ContentPolicy": { AllowedChoices: []string{}, ConvertedName: "ContentPolicy", Description: `ContentPolicy allows to pass optional Rego content policy. If not set, The action is always Allow, and there cannot be any alerts raised etc If it is set, it will be run, and the final decision will be computed based on that policy. If the rego code does not start with package main, then the needed classic package definition and acuvity imports will be added automatically. If the code starts with package main, then everything remains untouched.`, Exposed: true, Name: "contentPolicy", Type: "string", }, "Extractions": { AllowedChoices: []string{}, ConvertedName: "Extractions", Description: `The extractions to request.`, Exposed: true, Name: "extractions", SubType: "extractionrequest", Type: "refList", }, "Keywords": { AllowedChoices: []string{}, ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", SubType: "string", Type: "list", }, "Messages": { AllowedChoices: []string{}, ConvertedName: "Messages", Description: `Messages to process and provide detections for. Use data in extractions for processing binary data.`, Exposed: true, Name: "messages", SubType: "string", Type: "list", }, "MinimalLogging": { AllowedChoices: []string{}, ConvertedName: "MinimalLogging", Description: `If true, the system will not log the contents that were scanned.`, Exposed: true, Name: "minimalLogging", Type: "boolean", }, "Redactions": { AllowedChoices: []string{}, BSONFieldName: "redactions", ConvertedName: "Redactions", Description: `The redactions to perform if they are detected.`, Exposed: true, Name: "redactions", Stored: true, SubType: "string", Type: "list", }, "Type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
ScanRequestAttributesMap represents the map of attribute for ScanRequest.
var ScanRequestIdentity = elemental.Identity{ Name: "scanrequest", Category: "scanrequests", Package: "proxy", Private: false, }
ScanRequestIdentity represents the Identity of the object.
var ScanRequestLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "accesspolicy": { AllowedChoices: []string{}, ConvertedName: "AccessPolicy", Description: `AccessPolicy allows to pass optional Rego access policy. If not set, The action is always Allow, If it is set, it will be run, and the final decision will be computed based on that policy. If the rego code does not start with package main, then the needed classic package definition and acuvity imports will be added automatically. If the code starts with package main, then everything remains untouched.`, Exposed: true, Name: "accessPolicy", Type: "string", }, "analyzers": { AllowedChoices: []string{}, ConvertedName: "Analyzers", Description: `The name of the analyzers to run by the pipelines. If empty, it means all of them. Possible values are PIIs, Secrets, Topics, Confidentiality, Exploits.`, Exposed: true, Name: "analyzers", SubType: "string", Type: "list", }, "annotations": { AllowedChoices: []string{}, ConvertedName: "Annotations", Description: `Annotations attached to the extraction.`, Exposed: true, Name: "annotations", SubType: "map[string]string", Type: "external", }, "anonymization": { AllowedChoices: []string{"FixedSize", "VariableSize"}, BSONFieldName: "anonymization", ConvertedName: "Anonymization", DefaultValue: ScanRequestAnonymizationFixedSize, Description: `How to anonymize the data. If deanonymize is true, then VariablSize is required.`, Exposed: true, Name: "anonymization", Stored: true, Type: "enum", }, "bypasshash": { AllowedChoices: []string{}, BSONFieldName: "bypasshash", ConvertedName: "BypassHash", Description: `In the case of a contentPolicy that asks for a confirmation, this is the hash you must send back to bypass the block. This is only useful when a content policy has been set or is evaluated remotely.`, Exposed: true, Name: "bypassHash", Stored: true, Type: "string", }, "contentpolicy": { AllowedChoices: []string{}, ConvertedName: "ContentPolicy", Description: `ContentPolicy allows to pass optional Rego content policy. If not set, The action is always Allow, and there cannot be any alerts raised etc If it is set, it will be run, and the final decision will be computed based on that policy. If the rego code does not start with package main, then the needed classic package definition and acuvity imports will be added automatically. If the code starts with package main, then everything remains untouched.`, Exposed: true, Name: "contentPolicy", Type: "string", }, "extractions": { AllowedChoices: []string{}, ConvertedName: "Extractions", Description: `The extractions to request.`, Exposed: true, Name: "extractions", SubType: "extractionrequest", Type: "refList", }, "keywords": { AllowedChoices: []string{}, ConvertedName: "Keywords", Description: `The keywords found during classification.`, Exposed: true, Name: "keywords", SubType: "string", Type: "list", }, "messages": { AllowedChoices: []string{}, ConvertedName: "Messages", Description: `Messages to process and provide detections for. Use data in extractions for processing binary data.`, Exposed: true, Name: "messages", SubType: "string", Type: "list", }, "minimallogging": { AllowedChoices: []string{}, ConvertedName: "MinimalLogging", Description: `If true, the system will not log the contents that were scanned.`, Exposed: true, Name: "minimalLogging", Type: "boolean", }, "redactions": { AllowedChoices: []string{}, BSONFieldName: "redactions", ConvertedName: "Redactions", Description: `The redactions to perform if they are detected.`, Exposed: true, Name: "redactions", Stored: true, SubType: "string", Type: "list", }, "type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
ScanRequestLowerCaseAttributesMap represents the map of attribute for ScanRequest.
var ScanResponseAttributesMap = map[string]elemental.AttributeSpecification{ "ID": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "Alerts": { AllowedChoices: []string{}, BSONFieldName: "alerts", ConvertedName: "Alerts", Description: `List of alerts that got raised during the policy resolution.`, Exposed: true, Name: "alerts", Stored: true, SubType: "alertevent", Type: "refList", }, "Annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the log.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "Client": { AllowedChoices: []string{}, BSONFieldName: "client", ConvertedName: "Client", Description: `The client used to send the request.`, Exposed: true, Name: "client", Stored: true, Type: "string", }, "ClientVersion": { AllowedChoices: []string{}, BSONFieldName: "clientversion", ConvertedName: "ClientVersion", Description: `The version of the client used to send the request.`, Exposed: true, Name: "clientVersion", Stored: true, Type: "string", }, "Decision": { AllowedChoices: []string{"Deny", "Allow", "Ask", "Bypassed", "ForbiddenUser"}, BSONFieldName: "decision", ConvertedName: "Decision", Description: `Tell what was the decision about the data.`, Exposed: true, Name: "decision", Stored: true, Type: "enum", }, "Extractions": { AllowedChoices: []string{}, BSONFieldName: "extractions", ConvertedName: "Extractions", Description: `The extractions to log.`, Exposed: true, Name: "extractions", Stored: true, SubType: "extraction", Type: "refList", }, "Hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the input.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "Latency": { AllowedChoices: []string{}, BSONFieldName: "latency", ConvertedName: "Latency", Description: `Information about latency of various stage of request and response.`, Exposed: true, Name: "latency", Stored: true, SubType: "latency", Type: "ref", }, "Namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "PipelineName": { AllowedChoices: []string{}, BSONFieldName: "pipelinename", ConvertedName: "PipelineName", Description: `The name of the particular pipeline that extracted the text.`, Exposed: true, Name: "pipelineName", Stored: true, Type: "string", }, "Principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "Provider": { AllowedChoices: []string{}, BSONFieldName: "provider", ConvertedName: "Provider", Description: `the provider to use.`, Exposed: true, Name: "provider", Stored: true, Type: "string", }, "Reasons": { AllowedChoices: []string{}, BSONFieldName: "reasons", ConvertedName: "Reasons", Description: `The various reasons returned by the policy engine.`, Exposed: true, Name: "reasons", Stored: true, SubType: "string", Type: "list", }, "Summary": { AllowedChoices: []string{}, BSONFieldName: "summary", ConvertedName: "Summary", Description: `The summary of the extractions.`, Exposed: true, Name: "summary", Stored: true, SubType: "extractionsummary", Type: "ref", }, "Time": { AllowedChoices: []string{}, ConvertedName: "Time", Description: `Set the time of the message request.`, Exposed: true, Name: "time", Type: "time", }, "Type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
ScanResponseAttributesMap represents the map of attribute for ScanResponse.
var ScanResponseIdentity = elemental.Identity{ Name: "scanresponse", Category: "scanresponses", Package: "proxy", Private: false, }
ScanResponseIdentity represents the Identity of the object.
var ScanResponseLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "id": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "_id", ConvertedName: "ID", Description: `ID is the identifier of the object.`, Exposed: true, Filterable: true, Identifier: true, Name: "ID", Orderable: true, ReadOnly: true, Stored: true, Type: "string", }, "alerts": { AllowedChoices: []string{}, BSONFieldName: "alerts", ConvertedName: "Alerts", Description: `List of alerts that got raised during the policy resolution.`, Exposed: true, Name: "alerts", Stored: true, SubType: "alertevent", Type: "refList", }, "annotations": { AllowedChoices: []string{}, BSONFieldName: "annotations", ConvertedName: "Annotations", Description: `Annotations attached to the log.`, Exposed: true, Name: "annotations", Stored: true, SubType: "map[string]string", Type: "external", }, "client": { AllowedChoices: []string{}, BSONFieldName: "client", ConvertedName: "Client", Description: `The client used to send the request.`, Exposed: true, Name: "client", Stored: true, Type: "string", }, "clientversion": { AllowedChoices: []string{}, BSONFieldName: "clientversion", ConvertedName: "ClientVersion", Description: `The version of the client used to send the request.`, Exposed: true, Name: "clientVersion", Stored: true, Type: "string", }, "decision": { AllowedChoices: []string{"Deny", "Allow", "Ask", "Bypassed", "ForbiddenUser"}, BSONFieldName: "decision", ConvertedName: "Decision", Description: `Tell what was the decision about the data.`, Exposed: true, Name: "decision", Stored: true, Type: "enum", }, "extractions": { AllowedChoices: []string{}, BSONFieldName: "extractions", ConvertedName: "Extractions", Description: `The extractions to log.`, Exposed: true, Name: "extractions", Stored: true, SubType: "extraction", Type: "refList", }, "hash": { AllowedChoices: []string{}, BSONFieldName: "hash", ConvertedName: "Hash", Description: `The hash of the input.`, Exposed: true, Name: "hash", Stored: true, Type: "string", }, "latency": { AllowedChoices: []string{}, BSONFieldName: "latency", ConvertedName: "Latency", Description: `Information about latency of various stage of request and response.`, Exposed: true, Name: "latency", Stored: true, SubType: "latency", Type: "ref", }, "namespace": { AllowedChoices: []string{}, Autogenerated: true, BSONFieldName: "namespace", ConvertedName: "Namespace", Description: `The namespace of the object.`, Exposed: true, Getter: true, Name: "namespace", Orderable: true, ReadOnly: true, Setter: true, Stored: true, Type: "string", }, "pipelinename": { AllowedChoices: []string{}, BSONFieldName: "pipelinename", ConvertedName: "PipelineName", Description: `The name of the particular pipeline that extracted the text.`, Exposed: true, Name: "pipelineName", Stored: true, Type: "string", }, "principal": { AllowedChoices: []string{}, BSONFieldName: "principal", ConvertedName: "Principal", Description: `The principal of the object.`, Exposed: true, Name: "principal", Required: true, Stored: true, SubType: "principal", Type: "ref", }, "provider": { AllowedChoices: []string{}, BSONFieldName: "provider", ConvertedName: "Provider", Description: `the provider to use.`, Exposed: true, Name: "provider", Stored: true, Type: "string", }, "reasons": { AllowedChoices: []string{}, BSONFieldName: "reasons", ConvertedName: "Reasons", Description: `The various reasons returned by the policy engine.`, Exposed: true, Name: "reasons", Stored: true, SubType: "string", Type: "list", }, "summary": { AllowedChoices: []string{}, BSONFieldName: "summary", ConvertedName: "Summary", Description: `The summary of the extractions.`, Exposed: true, Name: "summary", Stored: true, SubType: "extractionsummary", Type: "ref", }, "time": { AllowedChoices: []string{}, ConvertedName: "Time", Description: `Set the time of the message request.`, Exposed: true, Name: "time", Type: "time", }, "type": { AllowedChoices: []string{"Input", "Output"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of text.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
ScanResponseLowerCaseAttributesMap represents the map of attribute for ScanResponse.
var TextualDetectionAttributesMap = map[string]elemental.AttributeSpecification{ "Content": { AllowedChoices: []string{}, ConvertedName: "Content", Description: `The original detected content.`, Name: "content", Type: "string", }, "End": { AllowedChoices: []string{}, BSONFieldName: "end", ConvertedName: "End", Description: `The end position of the detection in the original data.`, Exposed: true, Name: "end", Stored: true, Type: "integer", }, "Key": { AllowedChoices: []string{}, BSONFieldName: "key", ConvertedName: "Key", Description: `The key that is used in the name's place, If empty, a sequence of X's are used.`, Exposed: true, Name: "key", Stored: true, Type: "string", }, "Name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `The name of the detection.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, "Redacted": { AllowedChoices: []string{}, BSONFieldName: "redacted", ConvertedName: "Redacted", Description: `If true this detection has been redacted.`, Exposed: true, Name: "redacted", Stored: true, Type: "boolean", }, "RedactedEnd": { AllowedChoices: []string{}, BSONFieldName: "redactedend", ConvertedName: "RedactedEnd", Description: `The end position of the detection in the redacted data.`, Exposed: true, Name: "redactedEnd", Stored: true, Type: "integer", }, "RedactedStart": { AllowedChoices: []string{}, BSONFieldName: "redactedstart", ConvertedName: "RedactedStart", Description: `The start position of the detection in the redacted data.`, Exposed: true, Name: "redactedStart", Stored: true, Type: "integer", }, "Score": { AllowedChoices: []string{}, BSONFieldName: "score", ConvertedName: "Score", Description: `The confidence score of the detection.`, Exposed: true, MaxValue: 1, Name: "score", Stored: true, Type: "float", }, "Start": { AllowedChoices: []string{}, BSONFieldName: "start", ConvertedName: "Start", Description: `The start position of the detection in the original data.`, Exposed: true, Name: "start", Stored: true, Type: "integer", }, "Type": { AllowedChoices: []string{"Keyword", "PII", "Secret"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of detection.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
TextualDetectionAttributesMap represents the map of attribute for TextualDetection.
var TextualDetectionLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{ "content": { AllowedChoices: []string{}, ConvertedName: "Content", Description: `The original detected content.`, Name: "content", Type: "string", }, "end": { AllowedChoices: []string{}, BSONFieldName: "end", ConvertedName: "End", Description: `The end position of the detection in the original data.`, Exposed: true, Name: "end", Stored: true, Type: "integer", }, "key": { AllowedChoices: []string{}, BSONFieldName: "key", ConvertedName: "Key", Description: `The key that is used in the name's place, If empty, a sequence of X's are used.`, Exposed: true, Name: "key", Stored: true, Type: "string", }, "name": { AllowedChoices: []string{}, BSONFieldName: "name", ConvertedName: "Name", Description: `The name of the detection.`, Exposed: true, Name: "name", Stored: true, Type: "string", }, "redacted": { AllowedChoices: []string{}, BSONFieldName: "redacted", ConvertedName: "Redacted", Description: `If true this detection has been redacted.`, Exposed: true, Name: "redacted", Stored: true, Type: "boolean", }, "redactedend": { AllowedChoices: []string{}, BSONFieldName: "redactedend", ConvertedName: "RedactedEnd", Description: `The end position of the detection in the redacted data.`, Exposed: true, Name: "redactedEnd", Stored: true, Type: "integer", }, "redactedstart": { AllowedChoices: []string{}, BSONFieldName: "redactedstart", ConvertedName: "RedactedStart", Description: `The start position of the detection in the redacted data.`, Exposed: true, Name: "redactedStart", Stored: true, Type: "integer", }, "score": { AllowedChoices: []string{}, BSONFieldName: "score", ConvertedName: "Score", Description: `The confidence score of the detection.`, Exposed: true, MaxValue: 1, Name: "score", Stored: true, Type: "float", }, "start": { AllowedChoices: []string{}, BSONFieldName: "start", ConvertedName: "Start", Description: `The start position of the detection in the original data.`, Exposed: true, Name: "start", Stored: true, Type: "integer", }, "type": { AllowedChoices: []string{"Keyword", "PII", "Secret"}, BSONFieldName: "type", ConvertedName: "Type", Description: `The type of detection.`, Exposed: true, Name: "type", Stored: true, Type: "enum", }, }
TextualDetectionLowerCaseAttributesMap represents the map of attribute for TextualDetection.
Functions ¶
func AliasesForIdentity ¶
AliasesForIdentity returns all the aliases for the given identity.
func AllIdentities ¶
AllIdentities returns all existing identities.
func Manager ¶
func Manager() elemental.ModelManager
Manager returns the model elemental.ModelManager.
func ModelVersion ¶
func ModelVersion() float64
ModelVersion returns the current version of the model.
func OpenAPIJSON ¶
OpenAPIJSON returns the OpenAPI spec in JSON format
func OpenAPIYAML ¶
OpenAPIYAML returns the OpenAPI spec in YAML format
func ValidateNonEmptyList ¶
ValidateNonEmptyList validates that a list is not empty.
func ValidatePrincipal ¶
ValidatePrincipal validates the principal object.
func ValidateRego ¶
ValidateRego validates the rego input data.
Types ¶
type AlertEvent ¶
type AlertEvent struct { // The name of the alert definition that triggered the alert event. AlertDefinition string `json:"alertDefinition" msgpack:"alertDefinition" bson:"-" mapstructure:"alertDefinition,omitempty"` // The namespace of the alert definition. AlertDefinitionNamespace string `json:"alertDefinitionNamespace" msgpack:"alertDefinitionNamespace" bson:"-" mapstructure:"alertDefinitionNamespace,omitempty"` // The principal of the object. Principal *Principal `json:"principal" msgpack:"principal" bson:"principal" mapstructure:"principal,omitempty"` // The provider used that the alert came from. Provider string `json:"provider" msgpack:"provider" bson:"-" mapstructure:"provider,omitempty"` // When the alert event was raised. Timestamp time.Time `json:"timestamp,omitempty" msgpack:"timestamp,omitempty" bson:"-" mapstructure:"timestamp,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
AlertEvent represents the model of a alertevent
func (*AlertEvent) AttributeSpecifications ¶
func (*AlertEvent) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*AlertEvent) BleveType ¶
func (o *AlertEvent) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*AlertEvent) DeepCopy ¶
func (o *AlertEvent) DeepCopy() *AlertEvent
DeepCopy returns a deep copy if the AlertEvent.
func (*AlertEvent) DeepCopyInto ¶
func (o *AlertEvent) DeepCopyInto(out *AlertEvent)
DeepCopyInto copies the receiver into the given *AlertEvent.
func (*AlertEvent) GetBSON ¶
func (o *AlertEvent) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*AlertEvent) SetBSON ¶
func (o *AlertEvent) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*AlertEvent) SpecificationForAttribute ¶
func (*AlertEvent) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*AlertEvent) Validate ¶
func (o *AlertEvent) Validate() error
Validate valides the current information stored into the structure.
func (*AlertEvent) ValueForAttribute ¶
func (o *AlertEvent) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type Analyzer ¶
type Analyzer struct { // ID is the identifier of the object. ID string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // The description of the analyzer. Description string `json:"description" msgpack:"description" bson:"-" mapstructure:"description,omitempty"` // The detectors the analyzer can use. Detectors []*Detector `json:"detectors,omitempty" msgpack:"detectors,omitempty" bson:"-" mapstructure:"detectors,omitempty"` // Tell if the analyzer is enabled by default. Enabled bool `json:"enabled" msgpack:"enabled" bson:"-" mapstructure:"enabled,omitempty"` // The group the analyzer belongs to. Group string `json:"group" msgpack:"group" bson:"-" mapstructure:"group,omitempty"` // The models used by the analyzer. Models []*AnalyzerModel `json:"models,omitempty" msgpack:"models,omitempty" bson:"-" mapstructure:"models,omitempty"` // The name of the analyzer. Name string `json:"name" msgpack:"name" bson:"-" mapstructure:"name,omitempty"` // The namespace of the object. Namespace string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // A list of trigger or globl pattern that the analyzer will react on. // A trigger is the detector Group and Name separated with a /. Triggers []string `json:"triggers,omitempty" msgpack:"triggers,omitempty" bson:"-" mapstructure:"triggers,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Analyzer represents the model of a analyzer
func (*Analyzer) AttributeSpecifications ¶
func (*Analyzer) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Analyzer) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Analyzer.
func (*Analyzer) DefaultOrder ¶
DefaultOrder returns the list of default ordering fields.
func (*Analyzer) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Analyzer) GetNamespace ¶
GetNamespace returns the Namespace of the receiver.
func (*Analyzer) Identifier ¶
Identifier returns the value of the object's unique identifier.
func (*Analyzer) Patch ¶
func (o *Analyzer) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparseAnalyzer to the object.
func (*Analyzer) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Analyzer) SetIdentifier ¶
SetIdentifier sets the value of the object's unique identifier.
func (*Analyzer) SetNamespace ¶
SetNamespace sets the property Namespace of the receiver using the given value.
func (*Analyzer) SpecificationForAttribute ¶
func (*Analyzer) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Analyzer) ToSparse ¶
func (o *Analyzer) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*Analyzer) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type AnalyzerModel ¶
type AnalyzerModel struct { // The name of the model. Name string `json:"name" msgpack:"name" bson:"-" mapstructure:"name,omitempty"` // The revision of the model. Revision string `json:"revision" msgpack:"revision" bson:"-" mapstructure:"revision,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
AnalyzerModel represents the model of a analyzermodel
func NewAnalyzerModel ¶
func NewAnalyzerModel() *AnalyzerModel
NewAnalyzerModel returns a new *AnalyzerModel
func (*AnalyzerModel) AttributeSpecifications ¶
func (*AnalyzerModel) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*AnalyzerModel) BleveType ¶
func (o *AnalyzerModel) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*AnalyzerModel) DeepCopy ¶
func (o *AnalyzerModel) DeepCopy() *AnalyzerModel
DeepCopy returns a deep copy if the AnalyzerModel.
func (*AnalyzerModel) DeepCopyInto ¶
func (o *AnalyzerModel) DeepCopyInto(out *AnalyzerModel)
DeepCopyInto copies the receiver into the given *AnalyzerModel.
func (*AnalyzerModel) GetBSON ¶
func (o *AnalyzerModel) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*AnalyzerModel) SetBSON ¶
func (o *AnalyzerModel) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*AnalyzerModel) SpecificationForAttribute ¶
func (*AnalyzerModel) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*AnalyzerModel) Validate ¶
func (o *AnalyzerModel) Validate() error
Validate valides the current information stored into the structure.
func (*AnalyzerModel) ValueForAttribute ¶
func (o *AnalyzerModel) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type AnalyzersList ¶
type AnalyzersList []*Analyzer
AnalyzersList represents a list of Analyzers
func (AnalyzersList) Append ¶
func (o AnalyzersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the AnalyzersList.
func (AnalyzersList) Copy ¶
func (o AnalyzersList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the AnalyzersList.
func (AnalyzersList) DefaultOrder ¶
func (o AnalyzersList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (AnalyzersList) Identity ¶
func (o AnalyzersList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (AnalyzersList) List ¶
func (o AnalyzersList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (AnalyzersList) ToSparse ¶
func (o AnalyzersList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the AnalyzersList converted to SparseAnalyzersList. Objects in the list will only contain the given fields. No field means entire field set.
func (AnalyzersList) Version ¶
func (o AnalyzersList) Version() int
Version returns the version of the content.
type Detector ¶
type Detector struct { // The description of the detection. Description string `json:"description" msgpack:"description" bson:"-" mapstructure:"description,omitempty"` // The group the detection belongs to. Group string `json:"group" msgpack:"group" bson:"-" mapstructure:"group,omitempty"` // The label returned by the model. Label string `json:"label" msgpack:"label" bson:"-" mapstructure:"label,omitempty"` // The name of the detection. Name string `json:"name" msgpack:"name" bson:"-" mapstructure:"name,omitempty"` // Tell if the detection is positional. Positional bool `json:"positional" msgpack:"positional" bson:"-" mapstructure:"positional,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Detector represents the model of a detector
func (*Detector) AttributeSpecifications ¶
func (*Detector) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Detector) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Detector.
func (*Detector) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Detector) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Detector) SpecificationForAttribute ¶
func (*Detector) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Detector) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type Extraction ¶
type Extraction struct { // The PIIs found during classification. PIIs map[string]float64 `json:"PIIs,omitempty" msgpack:"PIIs,omitempty" bson:"piis,omitempty" mapstructure:"PIIs,omitempty"` // Annotations attached to the extraction. Annotations map[string]string `` /* 126-byte string literal not displayed */ // The categories are remapping of the modalities in a more human friendly way. Categories []Modality `json:"categories,omitempty" msgpack:"categories,omitempty" bson:"categories,omitempty" mapstructure:"categories,omitempty"` // The level of general confidentiality of the input. Confidentiality float64 `` /* 142-byte string literal not displayed */ // The data extracted. Data string `json:"data" msgpack:"data" bson:"data" mapstructure:"data,omitempty"` // The detections found while applying policies. Detections []*TextualDetection `json:"detections,omitempty" msgpack:"detections,omitempty" bson:"detections,omitempty" mapstructure:"detections,omitempty"` // The various exploits attempts. Exploits map[string]float64 `json:"exploits,omitempty" msgpack:"exploits,omitempty" bson:"exploits,omitempty" mapstructure:"exploits,omitempty"` // The hash of the extraction. Hash string `json:"hash,omitempty" msgpack:"hash,omitempty" bson:"hash,omitempty" mapstructure:"hash,omitempty"` // The estimated intent embodied into the text. Intent map[string]float64 `json:"intent,omitempty" msgpack:"intent,omitempty" bson:"intent,omitempty" mapstructure:"intent,omitempty"` // If true, this extraction is for internal use only. This can be used by agentic // systems to mark an extraction as internal only as opposed to user facing. Internal bool `json:"internal,omitempty" msgpack:"internal,omitempty" bson:"internal,omitempty" mapstructure:"internal,omitempty"` // If true, the data of the extraction is a file. IsFile bool `json:"isFile,omitempty" msgpack:"isFile,omitempty" bson:"isfile,omitempty" mapstructure:"isFile,omitempty"` // If true, indicates that the file has been stored. IsStored bool `json:"isStored,omitempty" msgpack:"isStored,omitempty" bson:"isstored,omitempty" mapstructure:"isStored,omitempty"` // The keywords found during classification. Keywords map[string]float64 `json:"keywords,omitempty" msgpack:"keywords,omitempty" bson:"keywords,omitempty" mapstructure:"keywords,omitempty"` // A means of distinguishing what was extracted, such as prompt, input file or // code. Label string `json:"label,omitempty" msgpack:"label,omitempty" bson:"label,omitempty" mapstructure:"label,omitempty"` // The language of the classification. Languages map[string]float64 `json:"languages,omitempty" msgpack:"languages,omitempty" bson:"languages,omitempty" mapstructure:"languages,omitempty"` // The modalities of data detected in the data. Modalities []Modality `json:"modalities,omitempty" msgpack:"modalities,omitempty" bson:"modalities,omitempty" mapstructure:"modalities,omitempty"` // This is an internal field and has no api meaning. OriginalData string `json:"-" msgpack:"-" bson:"-" mapstructure:"-,omitempty"` // The level of general organization relevance of the input. Relevance float64 `json:"relevance,omitempty" msgpack:"relevance,omitempty" bson:"relevance,omitempty" mapstructure:"relevance,omitempty"` // The secrets found during classification. Secrets map[string]float64 `json:"secrets,omitempty" msgpack:"secrets,omitempty" bson:"secrets,omitempty" mapstructure:"secrets,omitempty"` // The topic of the classification. Topics map[string]float64 `json:"topics,omitempty" msgpack:"topics,omitempty" bson:"topics,omitempty" mapstructure:"topics,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Extraction represents the model of a extraction
func (*Extraction) AttributeSpecifications ¶
func (*Extraction) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Extraction) BleveType ¶
func (o *Extraction) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*Extraction) DeepCopy ¶
func (o *Extraction) DeepCopy() *Extraction
DeepCopy returns a deep copy if the Extraction.
func (*Extraction) DeepCopyInto ¶
func (o *Extraction) DeepCopyInto(out *Extraction)
DeepCopyInto copies the receiver into the given *Extraction.
func (*Extraction) GetBSON ¶
func (o *Extraction) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Extraction) SetBSON ¶
func (o *Extraction) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Extraction) SpecificationForAttribute ¶
func (*Extraction) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Extraction) Validate ¶
func (o *Extraction) Validate() error
Validate valides the current information stored into the structure.
func (*Extraction) ValueForAttribute ¶
func (o *Extraction) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type ExtractionInformation ¶
type ExtractionInformation struct { // The number of times it has been seen. N int `json:"n,omitempty" msgpack:"n,omitempty" bson:"-" mapstructure:"n,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
ExtractionInformation represents the model of a extractioninformation
func NewExtractionInformation ¶
func NewExtractionInformation() *ExtractionInformation
NewExtractionInformation returns a new *ExtractionInformation
func (*ExtractionInformation) AttributeSpecifications ¶
func (*ExtractionInformation) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*ExtractionInformation) BleveType ¶
func (o *ExtractionInformation) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*ExtractionInformation) DeepCopy ¶
func (o *ExtractionInformation) DeepCopy() *ExtractionInformation
DeepCopy returns a deep copy if the ExtractionInformation.
func (*ExtractionInformation) DeepCopyInto ¶
func (o *ExtractionInformation) DeepCopyInto(out *ExtractionInformation)
DeepCopyInto copies the receiver into the given *ExtractionInformation.
func (*ExtractionInformation) GetBSON ¶
func (o *ExtractionInformation) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionInformation) SetBSON ¶
func (o *ExtractionInformation) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionInformation) SpecificationForAttribute ¶
func (*ExtractionInformation) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*ExtractionInformation) Validate ¶
func (o *ExtractionInformation) Validate() error
Validate valides the current information stored into the structure.
func (*ExtractionInformation) ValueForAttribute ¶
func (o *ExtractionInformation) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type ExtractionRequest ¶
type ExtractionRequest struct { // Annotations attached to the extraction. Annotations map[string]string `` /* 126-byte string literal not displayed */ // The binary data to request extraction for. Data []byte `json:"data" msgpack:"data" bson:"-" mapstructure:"data,omitempty"` // If true, this extraction is for internal use only. This can be used by agentic // systems to mark an extraction as internal only as opposed to user facing. Internal bool `json:"internal,omitempty" msgpack:"internal,omitempty" bson:"internal,omitempty" mapstructure:"internal,omitempty"` // If true, the data of the extraction is a file. IsFile bool `json:"isFile,omitempty" msgpack:"isFile,omitempty" bson:"isfile,omitempty" mapstructure:"isFile,omitempty"` // If true, indicates that the file has been stored. IsStored bool `json:"isStored,omitempty" msgpack:"isStored,omitempty" bson:"isstored,omitempty" mapstructure:"isStored,omitempty"` // A means of distinguishing what was extracted, such as prompt, input file or // code. Label string `json:"label,omitempty" msgpack:"label,omitempty" bson:"label,omitempty" mapstructure:"label,omitempty"` // This is an internal field and has no api meaning. OriginalData string `json:"-" msgpack:"-" bson:"-" mapstructure:"-,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
ExtractionRequest represents the model of a extractionrequest
func NewExtractionRequest ¶
func NewExtractionRequest() *ExtractionRequest
NewExtractionRequest returns a new *ExtractionRequest
func (*ExtractionRequest) AttributeSpecifications ¶
func (*ExtractionRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*ExtractionRequest) BleveType ¶
func (o *ExtractionRequest) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*ExtractionRequest) DeepCopy ¶
func (o *ExtractionRequest) DeepCopy() *ExtractionRequest
DeepCopy returns a deep copy if the ExtractionRequest.
func (*ExtractionRequest) DeepCopyInto ¶
func (o *ExtractionRequest) DeepCopyInto(out *ExtractionRequest)
DeepCopyInto copies the receiver into the given *ExtractionRequest.
func (*ExtractionRequest) GetBSON ¶
func (o *ExtractionRequest) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionRequest) SetBSON ¶
func (o *ExtractionRequest) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionRequest) SpecificationForAttribute ¶
func (*ExtractionRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*ExtractionRequest) Validate ¶
func (o *ExtractionRequest) Validate() error
Validate valides the current information stored into the structure.
func (*ExtractionRequest) ValueForAttribute ¶
func (o *ExtractionRequest) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type ExtractionSummary ¶
type ExtractionSummary struct { // The PIIs found during classification. PIIs map[string]ExtractionInformation `json:"PIIs,omitempty" msgpack:"PIIs,omitempty" bson:"piis,omitempty" mapstructure:"PIIs,omitempty"` // The categories are remapping of the modalities in a more human friendly way. Categories map[string]ExtractionInformation `json:"categories,omitempty" msgpack:"categories,omitempty" bson:"categories,omitempty" mapstructure:"categories,omitempty"` // The various exploits attempts. Exploits map[string]ExtractionInformation `json:"exploits,omitempty" msgpack:"exploits,omitempty" bson:"exploits,omitempty" mapstructure:"exploits,omitempty"` // The estimated intent embodied into the text. Intent map[string]ExtractionInformation `json:"intent,omitempty" msgpack:"intent,omitempty" bson:"intent,omitempty" mapstructure:"intent,omitempty"` // The keywords found during classification. Keywords map[string]ExtractionInformation `json:"keywords,omitempty" msgpack:"keywords,omitempty" bson:"keywords,omitempty" mapstructure:"keywords,omitempty"` // The language of the classification. Languages map[string]ExtractionInformation `json:"languages,omitempty" msgpack:"languages,omitempty" bson:"languages,omitempty" mapstructure:"languages,omitempty"` // The modalities of data detected in the data. Modalities map[string]ExtractionInformation `json:"modalities,omitempty" msgpack:"modalities,omitempty" bson:"modalities,omitempty" mapstructure:"modalities,omitempty"` // The secrets found during classification. Secrets map[string]ExtractionInformation `json:"secrets,omitempty" msgpack:"secrets,omitempty" bson:"secrets,omitempty" mapstructure:"secrets,omitempty"` // The topic of the classification. Topics map[string]ExtractionInformation `json:"topics,omitempty" msgpack:"topics,omitempty" bson:"topics,omitempty" mapstructure:"topics,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
ExtractionSummary represents the model of a extractionsummary
func NewExtractionSummary ¶
func NewExtractionSummary() *ExtractionSummary
NewExtractionSummary returns a new *ExtractionSummary
func (*ExtractionSummary) AttributeSpecifications ¶
func (*ExtractionSummary) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*ExtractionSummary) BleveType ¶
func (o *ExtractionSummary) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*ExtractionSummary) DeepCopy ¶
func (o *ExtractionSummary) DeepCopy() *ExtractionSummary
DeepCopy returns a deep copy if the ExtractionSummary.
func (*ExtractionSummary) DeepCopyInto ¶
func (o *ExtractionSummary) DeepCopyInto(out *ExtractionSummary)
DeepCopyInto copies the receiver into the given *ExtractionSummary.
func (*ExtractionSummary) GetBSON ¶
func (o *ExtractionSummary) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionSummary) SetBSON ¶
func (o *ExtractionSummary) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ExtractionSummary) SpecificationForAttribute ¶
func (*ExtractionSummary) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*ExtractionSummary) Validate ¶
func (o *ExtractionSummary) Validate() error
Validate valides the current information stored into the structure.
func (*ExtractionSummary) ValueForAttribute ¶
func (o *ExtractionSummary) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type LatenciesList ¶
type LatenciesList []*Latency
LatenciesList represents a list of Latencies
func (LatenciesList) Append ¶
func (o LatenciesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the LatenciesList.
func (LatenciesList) Copy ¶
func (o LatenciesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the LatenciesList.
func (LatenciesList) DefaultOrder ¶
func (o LatenciesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (LatenciesList) Identity ¶
func (o LatenciesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (LatenciesList) List ¶
func (o LatenciesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (LatenciesList) ToSparse ¶
func (o LatenciesList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the LatenciesList converted to SparseLatenciesList. Objects in the list will only contain the given fields. No field means entire field set.
func (LatenciesList) Version ¶
func (o LatenciesList) Version() int
Version returns the version of the content.
type Latency ¶
type Latency struct { // How much time it took to run the access policy in nanoseconds. AccessPolicy int `json:"accessPolicy" msgpack:"accessPolicy" bson:"accesspolicy" mapstructure:"accessPolicy,omitempty"` // How much time it took to run content analysis in nanoseconds. Analysis int `json:"analysis" msgpack:"analysis" bson:"analysis" mapstructure:"analysis,omitempty"` // How much time it took to run the assign policy in nanoseconds. AssignPolicy int `json:"assignPolicy" msgpack:"assignPolicy" bson:"assignpolicy" mapstructure:"assignPolicy,omitempty"` // How much time it took to run content policy in nanoseconds. ContentPolicy int `json:"contentPolicy" msgpack:"contentPolicy" bson:"contentpolicy" mapstructure:"contentPolicy,omitempty"` // How much time it took to run input or output extraction in nanoseconds. Extraction int `json:"extraction" msgpack:"extraction" bson:"extraction" mapstructure:"extraction,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Latency represents the model of a latency
func (*Latency) AttributeSpecifications ¶
func (*Latency) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Latency) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Latency.
func (*Latency) DefaultOrder ¶
DefaultOrder returns the list of default ordering fields.
func (*Latency) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Latency) Identifier ¶
Identifier returns the value of the object's unique identifier.
func (*Latency) Patch ¶
func (o *Latency) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparseLatency to the object.
func (*Latency) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Latency) SetIdentifier ¶
SetIdentifier sets the value of the object's unique identifier.
func (*Latency) SpecificationForAttribute ¶
func (*Latency) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Latency) ToSparse ¶
func (o *Latency) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*Latency) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type Modality ¶
type Modality struct { // The group of data. Group string `json:"group" msgpack:"group" bson:"group" mapstructure:"group,omitempty"` // The type of data. Type string `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Modality represents the model of a modality
func (*Modality) AttributeSpecifications ¶
func (*Modality) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Modality) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Modality.
func (*Modality) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Modality) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Modality) SpecificationForAttribute ¶
func (*Modality) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Modality) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type PoliceExternalUser ¶
type PoliceExternalUser struct { // List of claims extracted from the user query. Claims []string `json:"claims,omitempty" msgpack:"claims,omitempty" bson:"-" mapstructure:"claims,omitempty"` // The name of the external user. Name string `json:"name,omitempty" msgpack:"name,omitempty" bson:"-" mapstructure:"name,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
PoliceExternalUser represents the model of a policeexternaluser
func NewPoliceExternalUser ¶
func NewPoliceExternalUser() *PoliceExternalUser
NewPoliceExternalUser returns a new *PoliceExternalUser
func (*PoliceExternalUser) AttributeSpecifications ¶
func (*PoliceExternalUser) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*PoliceExternalUser) BleveType ¶
func (o *PoliceExternalUser) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*PoliceExternalUser) DeepCopy ¶
func (o *PoliceExternalUser) DeepCopy() *PoliceExternalUser
DeepCopy returns a deep copy if the PoliceExternalUser.
func (*PoliceExternalUser) DeepCopyInto ¶
func (o *PoliceExternalUser) DeepCopyInto(out *PoliceExternalUser)
DeepCopyInto copies the receiver into the given *PoliceExternalUser.
func (*PoliceExternalUser) GetBSON ¶
func (o *PoliceExternalUser) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceExternalUser) SetBSON ¶
func (o *PoliceExternalUser) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceExternalUser) SpecificationForAttribute ¶
func (*PoliceExternalUser) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*PoliceExternalUser) Validate ¶
func (o *PoliceExternalUser) Validate() error
Validate valides the current information stored into the structure.
func (*PoliceExternalUser) ValueForAttribute ¶
func (o *PoliceExternalUser) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type PoliceRequest ¶
type PoliceRequest struct { // Annotations attached to the extraction. Annotations map[string]string `json:"annotations,omitempty" msgpack:"annotations,omitempty" bson:"-" mapstructure:"annotations,omitempty"` // How to anonymize the data. If deanonymize is true, then VariablSize is required. Anonymization PoliceRequestAnonymizationValue `json:"anonymization" msgpack:"anonymization" bson:"anonymization" mapstructure:"anonymization,omitempty"` // In the case of a contentPolicy that asks for a confirmation, this is the // hash you must send back to bypass the block. This is only useful when a // content policy has been set or is evaluated remotely. BypassHash string `json:"bypassHash,omitempty" msgpack:"bypassHash,omitempty" bson:"bypasshash,omitempty" mapstructure:"bypassHash,omitempty"` // The extractions to request. Extractions []*ExtractionRequest `json:"extractions" msgpack:"extractions" bson:"-" mapstructure:"extractions,omitempty"` // Messages to process and provide detections for. Use data in extractions for // processing binary data. Messages []string `json:"messages,omitempty" msgpack:"messages,omitempty" bson:"-" mapstructure:"messages,omitempty"` // The name of the provider to use for policy resolutions. If not set, it will // default to the principal name (the application itself). Provider string `json:"provider,omitempty" msgpack:"provider,omitempty" bson:"-" mapstructure:"provider,omitempty"` // The type of text. Type PoliceRequestTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` // The user information that the PoliceRequest is passing on to the policy // engine that can be used for additional policy resolution. User *PoliceExternalUser `json:"user,omitempty" msgpack:"user,omitempty" bson:"-" mapstructure:"user,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
PoliceRequest represents the model of a policerequest
func NewPoliceRequest ¶
func NewPoliceRequest() *PoliceRequest
NewPoliceRequest returns a new *PoliceRequest
func (*PoliceRequest) AttributeSpecifications ¶
func (*PoliceRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*PoliceRequest) BleveType ¶
func (o *PoliceRequest) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*PoliceRequest) DeepCopy ¶
func (o *PoliceRequest) DeepCopy() *PoliceRequest
DeepCopy returns a deep copy if the PoliceRequest.
func (*PoliceRequest) DeepCopyInto ¶
func (o *PoliceRequest) DeepCopyInto(out *PoliceRequest)
DeepCopyInto copies the receiver into the given *PoliceRequest.
func (*PoliceRequest) DefaultOrder ¶
func (o *PoliceRequest) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*PoliceRequest) Doc ¶
func (o *PoliceRequest) Doc() string
Doc returns the documentation for the object
func (*PoliceRequest) GetBSON ¶
func (o *PoliceRequest) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceRequest) Identifier ¶
func (o *PoliceRequest) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*PoliceRequest) Identity ¶
func (o *PoliceRequest) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*PoliceRequest) Patch ¶
func (o *PoliceRequest) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparsePoliceRequest to the object.
func (*PoliceRequest) SetBSON ¶
func (o *PoliceRequest) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceRequest) SetIdentifier ¶
func (o *PoliceRequest) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*PoliceRequest) SpecificationForAttribute ¶
func (*PoliceRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*PoliceRequest) String ¶
func (o *PoliceRequest) String() string
func (*PoliceRequest) ToSparse ¶
func (o *PoliceRequest) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*PoliceRequest) Validate ¶
func (o *PoliceRequest) Validate() error
Validate valides the current information stored into the structure.
func (*PoliceRequest) ValueForAttribute ¶
func (o *PoliceRequest) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*PoliceRequest) Version ¶
func (o *PoliceRequest) Version() int
Version returns the hardcoded version of the model.
type PoliceRequestAnonymizationValue ¶
type PoliceRequestAnonymizationValue string
PoliceRequestAnonymizationValue represents the possible values for attribute "anonymization".
const ( // PoliceRequestAnonymizationFixedSize represents the value FixedSize. PoliceRequestAnonymizationFixedSize PoliceRequestAnonymizationValue = "FixedSize" // PoliceRequestAnonymizationVariableSize represents the value VariableSize. PoliceRequestAnonymizationVariableSize PoliceRequestAnonymizationValue = "VariableSize" )
type PoliceRequestTypeValue ¶
type PoliceRequestTypeValue string
PoliceRequestTypeValue represents the possible values for attribute "type".
const ( // PoliceRequestTypeInput represents the value Input. PoliceRequestTypeInput PoliceRequestTypeValue = "Input" // PoliceRequestTypeOutput represents the value Output. PoliceRequestTypeOutput PoliceRequestTypeValue = "Output" )
type PoliceRequestsList ¶
type PoliceRequestsList []*PoliceRequest
PoliceRequestsList represents a list of PoliceRequests
func (PoliceRequestsList) Append ¶
func (o PoliceRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the PoliceRequestsList.
func (PoliceRequestsList) Copy ¶
func (o PoliceRequestsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the PoliceRequestsList.
func (PoliceRequestsList) DefaultOrder ¶
func (o PoliceRequestsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (PoliceRequestsList) Identity ¶
func (o PoliceRequestsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (PoliceRequestsList) List ¶
func (o PoliceRequestsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (PoliceRequestsList) ToSparse ¶
func (o PoliceRequestsList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the PoliceRequestsList converted to SparsePoliceRequestsList. Objects in the list will only contain the given fields. No field means entire field set.
func (PoliceRequestsList) Version ¶
func (o PoliceRequestsList) Version() int
Version returns the version of the content.
type PoliceResponse ¶
type PoliceResponse struct { // ID is the identifier of the object. ID string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // List of alerts that got raised during the policy resolution. Alerts []*AlertEvent `json:"alerts,omitempty" msgpack:"alerts,omitempty" bson:"alerts,omitempty" mapstructure:"alerts,omitempty"` // Annotations attached to the log. Annotations map[string]string `` /* 126-byte string literal not displayed */ // The client used to send the request. Client string `json:"client,omitempty" msgpack:"client,omitempty" bson:"client,omitempty" mapstructure:"client,omitempty"` // The version of the client used to send the request. ClientVersion string `` /* 134-byte string literal not displayed */ // Tell what was the decision about the data. Decision PoliceResponseDecisionValue `json:"decision" msgpack:"decision" bson:"decision" mapstructure:"decision,omitempty"` // The extractions to log. Extractions []*Extraction `` /* 126-byte string literal not displayed */ // The hash of the input. Hash string `json:"hash" msgpack:"hash" bson:"hash" mapstructure:"hash,omitempty"` // Information about latency of various stage of request and response. Latency *Latency `json:"latency,omitempty" msgpack:"latency,omitempty" bson:"latency,omitempty" mapstructure:"latency,omitempty"` // The namespace of the object. Namespace string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // The name of the particular pipeline that extracted the text. PipelineName string `json:"pipelineName" msgpack:"pipelineName" bson:"pipelinename" mapstructure:"pipelineName,omitempty"` // The principal of the object. Principal *Principal `json:"principal" msgpack:"principal" bson:"principal" mapstructure:"principal,omitempty"` // the provider to use. Provider string `json:"provider" msgpack:"provider" bson:"provider" mapstructure:"provider,omitempty"` // The various reasons returned by the policy engine. Reasons []string `json:"reasons,omitempty" msgpack:"reasons,omitempty" bson:"reasons,omitempty" mapstructure:"reasons,omitempty"` // The summary of the extractions. Summary *ExtractionSummary `json:"summary,omitempty" msgpack:"summary,omitempty" bson:"summary,omitempty" mapstructure:"summary,omitempty"` // Set the time of the message request. Time time.Time `json:"time,omitempty" msgpack:"time,omitempty" bson:"-" mapstructure:"time,omitempty"` // The type of text. Type PoliceResponseTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
PoliceResponse represents the model of a policeresponse
func NewPoliceResponse ¶
func NewPoliceResponse() *PoliceResponse
NewPoliceResponse returns a new *PoliceResponse
func (*PoliceResponse) AttributeSpecifications ¶
func (*PoliceResponse) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*PoliceResponse) BleveType ¶
func (o *PoliceResponse) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*PoliceResponse) DeepCopy ¶
func (o *PoliceResponse) DeepCopy() *PoliceResponse
DeepCopy returns a deep copy if the PoliceResponse.
func (*PoliceResponse) DeepCopyInto ¶
func (o *PoliceResponse) DeepCopyInto(out *PoliceResponse)
DeepCopyInto copies the receiver into the given *PoliceResponse.
func (*PoliceResponse) DefaultOrder ¶
func (o *PoliceResponse) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*PoliceResponse) Doc ¶
func (o *PoliceResponse) Doc() string
Doc returns the documentation for the object
func (*PoliceResponse) GetBSON ¶
func (o *PoliceResponse) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceResponse) GetNamespace ¶
func (o *PoliceResponse) GetNamespace() string
GetNamespace returns the Namespace of the receiver.
func (*PoliceResponse) Identifier ¶
func (o *PoliceResponse) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*PoliceResponse) Identity ¶
func (o *PoliceResponse) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*PoliceResponse) Patch ¶
func (o *PoliceResponse) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparsePoliceResponse to the object.
func (*PoliceResponse) SetBSON ¶
func (o *PoliceResponse) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PoliceResponse) SetIdentifier ¶
func (o *PoliceResponse) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*PoliceResponse) SetNamespace ¶
func (o *PoliceResponse) SetNamespace(namespace string)
SetNamespace sets the property Namespace of the receiver using the given value.
func (*PoliceResponse) SpecificationForAttribute ¶
func (*PoliceResponse) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*PoliceResponse) String ¶
func (o *PoliceResponse) String() string
func (*PoliceResponse) ToSparse ¶
func (o *PoliceResponse) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*PoliceResponse) Validate ¶
func (o *PoliceResponse) Validate() error
Validate valides the current information stored into the structure.
func (*PoliceResponse) ValueForAttribute ¶
func (o *PoliceResponse) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*PoliceResponse) Version ¶
func (o *PoliceResponse) Version() int
Version returns the hardcoded version of the model.
type PoliceResponseDecisionValue ¶
type PoliceResponseDecisionValue string
PoliceResponseDecisionValue represents the possible values for attribute "decision".
const ( // PoliceResponseDecisionAllow represents the value Allow. PoliceResponseDecisionAllow PoliceResponseDecisionValue = "Allow" // PoliceResponseDecisionAsk represents the value Ask. PoliceResponseDecisionAsk PoliceResponseDecisionValue = "Ask" // PoliceResponseDecisionBypassed represents the value Bypassed. PoliceResponseDecisionBypassed PoliceResponseDecisionValue = "Bypassed" // PoliceResponseDecisionDeny represents the value Deny. PoliceResponseDecisionDeny PoliceResponseDecisionValue = "Deny" // PoliceResponseDecisionForbiddenUser represents the value ForbiddenUser. PoliceResponseDecisionForbiddenUser PoliceResponseDecisionValue = "ForbiddenUser" )
type PoliceResponseTypeValue ¶
type PoliceResponseTypeValue string
PoliceResponseTypeValue represents the possible values for attribute "type".
const ( // PoliceResponseTypeInput represents the value Input. PoliceResponseTypeInput PoliceResponseTypeValue = "Input" // PoliceResponseTypeOutput represents the value Output. PoliceResponseTypeOutput PoliceResponseTypeValue = "Output" )
type PoliceResponsesList ¶
type PoliceResponsesList []*PoliceResponse
PoliceResponsesList represents a list of PoliceResponses
func (PoliceResponsesList) Append ¶
func (o PoliceResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the PoliceResponsesList.
func (PoliceResponsesList) Copy ¶
func (o PoliceResponsesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the PoliceResponsesList.
func (PoliceResponsesList) DefaultOrder ¶
func (o PoliceResponsesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (PoliceResponsesList) Identity ¶
func (o PoliceResponsesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (PoliceResponsesList) List ¶
func (o PoliceResponsesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (PoliceResponsesList) ToSparse ¶
func (o PoliceResponsesList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the PoliceResponsesList converted to SparsePoliceResponsesList. Objects in the list will only contain the given fields. No field means entire field set.
func (PoliceResponsesList) Version ¶
func (o PoliceResponsesList) Version() int
Version returns the version of the content.
type Principal ¶
type Principal struct { // The application principal information if type is App. App *PrincipalApp `json:"app,omitempty" msgpack:"app,omitempty" bson:"app,omitempty" mapstructure:"app,omitempty"` // The type of authentication. AuthType PrincipalAuthTypeValue `json:"authType" msgpack:"authType" bson:"authtype" mapstructure:"authType,omitempty"` // List of claims extracted from the user query. Claims []string `json:"claims,omitempty" msgpack:"claims,omitempty" bson:"claims,omitempty" mapstructure:"claims,omitempty"` // The team that was used to authorize the request. Team string `json:"team,omitempty" msgpack:"team,omitempty" bson:"team,omitempty" mapstructure:"team,omitempty"` // The name of the token, if any. TokenName string `json:"tokenName" msgpack:"tokenName" bson:"tokenname" mapstructure:"tokenName,omitempty"` // The type of principal. Type PrincipalTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` // The user principal information if type is User. User *PrincipalUser `json:"user,omitempty" msgpack:"user,omitempty" bson:"user,omitempty" mapstructure:"user,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
Principal represents the model of a principal
func (*Principal) AttributeSpecifications ¶
func (*Principal) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Principal) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Principal.
func (*Principal) DefaultOrder ¶
DefaultOrder returns the list of default ordering fields.
func (*Principal) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Principal) Identifier ¶
Identifier returns the value of the object's unique identifier.
func (*Principal) Patch ¶
func (o *Principal) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparsePrincipal to the object.
func (*Principal) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Principal) SetIdentifier ¶
SetIdentifier sets the value of the object's unique identifier.
func (*Principal) SpecificationForAttribute ¶
func (*Principal) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Principal) ToSparse ¶
func (o *Principal) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*Principal) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type PrincipalApp ¶
type PrincipalApp struct { // The list of labels attached to an application request. Labels []string `json:"labels,omitempty" msgpack:"labels,omitempty" bson:"labels,omitempty" mapstructure:"labels,omitempty"` // The name of the application. Name string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"` // The tier of the application request. Tier string `json:"tier,omitempty" msgpack:"tier,omitempty" bson:"tier,omitempty" mapstructure:"tier,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
PrincipalApp represents the model of a principalapp
func NewPrincipalApp ¶
func NewPrincipalApp() *PrincipalApp
NewPrincipalApp returns a new *PrincipalApp
func (*PrincipalApp) AttributeSpecifications ¶
func (*PrincipalApp) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*PrincipalApp) BleveType ¶
func (o *PrincipalApp) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*PrincipalApp) DeepCopy ¶
func (o *PrincipalApp) DeepCopy() *PrincipalApp
DeepCopy returns a deep copy if the PrincipalApp.
func (*PrincipalApp) DeepCopyInto ¶
func (o *PrincipalApp) DeepCopyInto(out *PrincipalApp)
DeepCopyInto copies the receiver into the given *PrincipalApp.
func (*PrincipalApp) DefaultOrder ¶
func (o *PrincipalApp) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*PrincipalApp) Doc ¶
func (o *PrincipalApp) Doc() string
Doc returns the documentation for the object
func (*PrincipalApp) GetBSON ¶
func (o *PrincipalApp) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PrincipalApp) Identifier ¶
func (o *PrincipalApp) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*PrincipalApp) Identity ¶
func (o *PrincipalApp) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*PrincipalApp) Patch ¶
func (o *PrincipalApp) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparsePrincipalApp to the object.
func (*PrincipalApp) SetBSON ¶
func (o *PrincipalApp) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PrincipalApp) SetIdentifier ¶
func (o *PrincipalApp) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*PrincipalApp) SpecificationForAttribute ¶
func (*PrincipalApp) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*PrincipalApp) String ¶
func (o *PrincipalApp) String() string
func (*PrincipalApp) ToSparse ¶
func (o *PrincipalApp) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*PrincipalApp) Validate ¶
func (o *PrincipalApp) Validate() error
Validate valides the current information stored into the structure.
func (*PrincipalApp) ValueForAttribute ¶
func (o *PrincipalApp) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*PrincipalApp) Version ¶
func (o *PrincipalApp) Version() int
Version returns the hardcoded version of the model.
type PrincipalAppsList ¶
type PrincipalAppsList []*PrincipalApp
PrincipalAppsList represents a list of PrincipalApps
func (PrincipalAppsList) Append ¶
func (o PrincipalAppsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the PrincipalAppsList.
func (PrincipalAppsList) Copy ¶
func (o PrincipalAppsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the PrincipalAppsList.
func (PrincipalAppsList) DefaultOrder ¶
func (o PrincipalAppsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (PrincipalAppsList) Identity ¶
func (o PrincipalAppsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (PrincipalAppsList) List ¶
func (o PrincipalAppsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (PrincipalAppsList) ToSparse ¶
func (o PrincipalAppsList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the PrincipalAppsList converted to SparsePrincipalAppsList. Objects in the list will only contain the given fields. No field means entire field set.
func (PrincipalAppsList) Version ¶
func (o PrincipalAppsList) Version() int
Version returns the version of the content.
type PrincipalAuthTypeValue ¶
type PrincipalAuthTypeValue string
PrincipalAuthTypeValue represents the possible values for attribute "authType".
const ( // PrincipalAuthTypeAppToken represents the value AppToken. PrincipalAuthTypeAppToken PrincipalAuthTypeValue = "AppToken" // PrincipalAuthTypeCertificate represents the value Certificate. PrincipalAuthTypeCertificate PrincipalAuthTypeValue = "Certificate" // PrincipalAuthTypeExternal represents the value External. PrincipalAuthTypeExternal PrincipalAuthTypeValue = "External" // PrincipalAuthTypeHostname represents the value Hostname. PrincipalAuthTypeHostname PrincipalAuthTypeValue = "Hostname" // PrincipalAuthTypeTierToken represents the value TierToken. PrincipalAuthTypeTierToken PrincipalAuthTypeValue = "TierToken" // PrincipalAuthTypeToken represents the value Token. PrincipalAuthTypeToken PrincipalAuthTypeValue = "Token" // PrincipalAuthTypeUserToken represents the value UserToken. PrincipalAuthTypeUserToken PrincipalAuthTypeValue = "UserToken" )
type PrincipalTypeValue ¶
type PrincipalTypeValue string
PrincipalTypeValue represents the possible values for attribute "type".
const ( // PrincipalTypeApp represents the value App. PrincipalTypeApp PrincipalTypeValue = "App" // PrincipalTypeUser represents the value User. PrincipalTypeUser PrincipalTypeValue = "User" )
type PrincipalUser ¶
type PrincipalUser struct { // Identification bit that will be used to identify the origin of the request. Name string `json:"name" msgpack:"name" bson:"name" mapstructure:"name,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
PrincipalUser represents the model of a principaluser
func NewPrincipalUser ¶
func NewPrincipalUser() *PrincipalUser
NewPrincipalUser returns a new *PrincipalUser
func (*PrincipalUser) AttributeSpecifications ¶
func (*PrincipalUser) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*PrincipalUser) BleveType ¶
func (o *PrincipalUser) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*PrincipalUser) DeepCopy ¶
func (o *PrincipalUser) DeepCopy() *PrincipalUser
DeepCopy returns a deep copy if the PrincipalUser.
func (*PrincipalUser) DeepCopyInto ¶
func (o *PrincipalUser) DeepCopyInto(out *PrincipalUser)
DeepCopyInto copies the receiver into the given *PrincipalUser.
func (*PrincipalUser) DefaultOrder ¶
func (o *PrincipalUser) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*PrincipalUser) Doc ¶
func (o *PrincipalUser) Doc() string
Doc returns the documentation for the object
func (*PrincipalUser) GetBSON ¶
func (o *PrincipalUser) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PrincipalUser) Identifier ¶
func (o *PrincipalUser) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*PrincipalUser) Identity ¶
func (o *PrincipalUser) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*PrincipalUser) Patch ¶
func (o *PrincipalUser) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparsePrincipalUser to the object.
func (*PrincipalUser) SetBSON ¶
func (o *PrincipalUser) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*PrincipalUser) SetIdentifier ¶
func (o *PrincipalUser) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*PrincipalUser) SpecificationForAttribute ¶
func (*PrincipalUser) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*PrincipalUser) String ¶
func (o *PrincipalUser) String() string
func (*PrincipalUser) ToSparse ¶
func (o *PrincipalUser) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*PrincipalUser) Validate ¶
func (o *PrincipalUser) Validate() error
Validate valides the current information stored into the structure.
func (*PrincipalUser) ValueForAttribute ¶
func (o *PrincipalUser) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*PrincipalUser) Version ¶
func (o *PrincipalUser) Version() int
Version returns the hardcoded version of the model.
type PrincipalUsersList ¶
type PrincipalUsersList []*PrincipalUser
PrincipalUsersList represents a list of PrincipalUsers
func (PrincipalUsersList) Append ¶
func (o PrincipalUsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the PrincipalUsersList.
func (PrincipalUsersList) Copy ¶
func (o PrincipalUsersList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the PrincipalUsersList.
func (PrincipalUsersList) DefaultOrder ¶
func (o PrincipalUsersList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (PrincipalUsersList) Identity ¶
func (o PrincipalUsersList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (PrincipalUsersList) List ¶
func (o PrincipalUsersList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (PrincipalUsersList) ToSparse ¶
func (o PrincipalUsersList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the PrincipalUsersList converted to SparsePrincipalUsersList. Objects in the list will only contain the given fields. No field means entire field set.
func (PrincipalUsersList) Version ¶
func (o PrincipalUsersList) Version() int
Version returns the version of the content.
type PrincipalsList ¶
type PrincipalsList []*Principal
PrincipalsList represents a list of Principals
func (PrincipalsList) Append ¶
func (o PrincipalsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the PrincipalsList.
func (PrincipalsList) Copy ¶
func (o PrincipalsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the PrincipalsList.
func (PrincipalsList) DefaultOrder ¶
func (o PrincipalsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (PrincipalsList) Identity ¶
func (o PrincipalsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (PrincipalsList) List ¶
func (o PrincipalsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (PrincipalsList) ToSparse ¶
func (o PrincipalsList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the PrincipalsList converted to SparsePrincipalsList. Objects in the list will only contain the given fields. No field means entire field set.
func (PrincipalsList) Version ¶
func (o PrincipalsList) Version() int
Version returns the version of the content.
type Root ¶
type Root struct {
ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}
Root represents the model of a root
func (*Root) AttributeSpecifications ¶
func (*Root) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*Root) DeepCopyInto ¶
DeepCopyInto copies the receiver into the given *Root.
func (*Root) DefaultOrder ¶
DefaultOrder returns the list of default ordering fields.
func (*Root) GetBSON ¶
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Root) Identifier ¶
Identifier returns the value of the object's unique identifier.
func (*Root) SetBSON ¶
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*Root) SetIdentifier ¶
SetIdentifier sets the value of the object's unique identifier.
func (*Root) SpecificationForAttribute ¶
func (*Root) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*Root) ValueForAttribute ¶
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type ScanRequest ¶
type ScanRequest struct { // AccessPolicy allows to pass optional Rego access policy. If not set, // The action is always Allow, // If it is set, it will be run, and the final decision will be computed based // on that policy. // If the rego code does not start with package main, then the needed // classic package definition and acuvity imports will be added // automatically. // If the code starts with package main, then everything remains untouched. AccessPolicy string `json:"accessPolicy,omitempty" msgpack:"accessPolicy,omitempty" bson:"-" mapstructure:"accessPolicy,omitempty"` // The name of the analyzers to run by the pipelines. If empty, it means all of // them. Possible values are PIIs, Secrets, Topics, Confidentiality, Exploits. Analyzers []string `json:"analyzers,omitempty" msgpack:"analyzers,omitempty" bson:"-" mapstructure:"analyzers,omitempty"` // Annotations attached to the extraction. Annotations map[string]string `json:"annotations,omitempty" msgpack:"annotations,omitempty" bson:"-" mapstructure:"annotations,omitempty"` // How to anonymize the data. If deanonymize is true, then VariablSize is required. Anonymization ScanRequestAnonymizationValue `json:"anonymization" msgpack:"anonymization" bson:"anonymization" mapstructure:"anonymization,omitempty"` // In the case of a contentPolicy that asks for a confirmation, this is the // hash you must send back to bypass the block. This is only useful when a // content policy has been set or is evaluated remotely. BypassHash string `json:"bypassHash,omitempty" msgpack:"bypassHash,omitempty" bson:"bypasshash,omitempty" mapstructure:"bypassHash,omitempty"` // ContentPolicy allows to pass optional Rego content policy. If not set, // The action is always Allow, and there cannot be any alerts raised etc // If it is set, it will be run, and the final decision will be computed based // on that policy. // If the rego code does not start with package main, then the needed // classic package definition and acuvity imports will be added // automatically. // If the code starts with package main, then everything remains untouched. ContentPolicy string `json:"contentPolicy,omitempty" msgpack:"contentPolicy,omitempty" bson:"-" mapstructure:"contentPolicy,omitempty"` // The extractions to request. Extractions []*ExtractionRequest `json:"extractions" msgpack:"extractions" bson:"-" mapstructure:"extractions,omitempty"` // The keywords found during classification. Keywords []string `json:"keywords,omitempty" msgpack:"keywords,omitempty" bson:"-" mapstructure:"keywords,omitempty"` // Messages to process and provide detections for. Use data in extractions for // processing binary data. Messages []string `json:"messages,omitempty" msgpack:"messages,omitempty" bson:"-" mapstructure:"messages,omitempty"` // If true, the system will not log the contents that were scanned. MinimalLogging bool `json:"minimalLogging,omitempty" msgpack:"minimalLogging,omitempty" bson:"-" mapstructure:"minimalLogging,omitempty"` // The redactions to perform if they are detected. Redactions []string `json:"redactions,omitempty" msgpack:"redactions,omitempty" bson:"redactions,omitempty" mapstructure:"redactions,omitempty"` // The type of text. Type ScanRequestTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
ScanRequest represents the model of a scanrequest
func (*ScanRequest) AttributeSpecifications ¶
func (*ScanRequest) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*ScanRequest) BleveType ¶
func (o *ScanRequest) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*ScanRequest) DeepCopy ¶
func (o *ScanRequest) DeepCopy() *ScanRequest
DeepCopy returns a deep copy if the ScanRequest.
func (*ScanRequest) DeepCopyInto ¶
func (o *ScanRequest) DeepCopyInto(out *ScanRequest)
DeepCopyInto copies the receiver into the given *ScanRequest.
func (*ScanRequest) DefaultOrder ¶
func (o *ScanRequest) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*ScanRequest) Doc ¶
func (o *ScanRequest) Doc() string
Doc returns the documentation for the object
func (*ScanRequest) GetBSON ¶
func (o *ScanRequest) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ScanRequest) Identifier ¶
func (o *ScanRequest) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*ScanRequest) Identity ¶
func (o *ScanRequest) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*ScanRequest) Patch ¶
func (o *ScanRequest) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparseScanRequest to the object.
func (*ScanRequest) SetBSON ¶
func (o *ScanRequest) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ScanRequest) SetIdentifier ¶
func (o *ScanRequest) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*ScanRequest) SpecificationForAttribute ¶
func (*ScanRequest) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*ScanRequest) String ¶
func (o *ScanRequest) String() string
func (*ScanRequest) ToSparse ¶
func (o *ScanRequest) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*ScanRequest) Validate ¶
func (o *ScanRequest) Validate() error
Validate valides the current information stored into the structure.
func (*ScanRequest) ValueForAttribute ¶
func (o *ScanRequest) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*ScanRequest) Version ¶
func (o *ScanRequest) Version() int
Version returns the hardcoded version of the model.
type ScanRequestAnonymizationValue ¶
type ScanRequestAnonymizationValue string
ScanRequestAnonymizationValue represents the possible values for attribute "anonymization".
const ( // ScanRequestAnonymizationFixedSize represents the value FixedSize. ScanRequestAnonymizationFixedSize ScanRequestAnonymizationValue = "FixedSize" // ScanRequestAnonymizationVariableSize represents the value VariableSize. ScanRequestAnonymizationVariableSize ScanRequestAnonymizationValue = "VariableSize" )
type ScanRequestTypeValue ¶
type ScanRequestTypeValue string
ScanRequestTypeValue represents the possible values for attribute "type".
const ( // ScanRequestTypeInput represents the value Input. ScanRequestTypeInput ScanRequestTypeValue = "Input" // ScanRequestTypeOutput represents the value Output. ScanRequestTypeOutput ScanRequestTypeValue = "Output" )
type ScanRequestsList ¶
type ScanRequestsList []*ScanRequest
ScanRequestsList represents a list of ScanRequests
func (ScanRequestsList) Append ¶
func (o ScanRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the ScanRequestsList.
func (ScanRequestsList) Copy ¶
func (o ScanRequestsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the ScanRequestsList.
func (ScanRequestsList) DefaultOrder ¶
func (o ScanRequestsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (ScanRequestsList) Identity ¶
func (o ScanRequestsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (ScanRequestsList) List ¶
func (o ScanRequestsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (ScanRequestsList) ToSparse ¶
func (o ScanRequestsList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the ScanRequestsList converted to SparseScanRequestsList. Objects in the list will only contain the given fields. No field means entire field set.
func (ScanRequestsList) Version ¶
func (o ScanRequestsList) Version() int
Version returns the version of the content.
type ScanResponse ¶
type ScanResponse struct { // ID is the identifier of the object. ID string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // List of alerts that got raised during the policy resolution. Alerts []*AlertEvent `json:"alerts,omitempty" msgpack:"alerts,omitempty" bson:"alerts,omitempty" mapstructure:"alerts,omitempty"` // Annotations attached to the log. Annotations map[string]string `` /* 126-byte string literal not displayed */ // The client used to send the request. Client string `json:"client,omitempty" msgpack:"client,omitempty" bson:"client,omitempty" mapstructure:"client,omitempty"` // The version of the client used to send the request. ClientVersion string `` /* 134-byte string literal not displayed */ // Tell what was the decision about the data. Decision ScanResponseDecisionValue `json:"decision" msgpack:"decision" bson:"decision" mapstructure:"decision,omitempty"` // The extractions to log. Extractions []*Extraction `` /* 126-byte string literal not displayed */ // The hash of the input. Hash string `json:"hash" msgpack:"hash" bson:"hash" mapstructure:"hash,omitempty"` // Information about latency of various stage of request and response. Latency *Latency `json:"latency,omitempty" msgpack:"latency,omitempty" bson:"latency,omitempty" mapstructure:"latency,omitempty"` // The namespace of the object. Namespace string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // The name of the particular pipeline that extracted the text. PipelineName string `json:"pipelineName" msgpack:"pipelineName" bson:"pipelinename" mapstructure:"pipelineName,omitempty"` // The principal of the object. Principal *Principal `json:"principal" msgpack:"principal" bson:"principal" mapstructure:"principal,omitempty"` // the provider to use. Provider string `json:"provider" msgpack:"provider" bson:"provider" mapstructure:"provider,omitempty"` // The various reasons returned by the policy engine. Reasons []string `json:"reasons,omitempty" msgpack:"reasons,omitempty" bson:"reasons,omitempty" mapstructure:"reasons,omitempty"` // The summary of the extractions. Summary *ExtractionSummary `json:"summary,omitempty" msgpack:"summary,omitempty" bson:"summary,omitempty" mapstructure:"summary,omitempty"` // Set the time of the message request. Time time.Time `json:"time,omitempty" msgpack:"time,omitempty" bson:"-" mapstructure:"time,omitempty"` // The type of text. Type ScanResponseTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
ScanResponse represents the model of a scanresponse
func NewScanResponse ¶
func NewScanResponse() *ScanResponse
NewScanResponse returns a new *ScanResponse
func (*ScanResponse) AttributeSpecifications ¶
func (*ScanResponse) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*ScanResponse) BleveType ¶
func (o *ScanResponse) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*ScanResponse) DeepCopy ¶
func (o *ScanResponse) DeepCopy() *ScanResponse
DeepCopy returns a deep copy if the ScanResponse.
func (*ScanResponse) DeepCopyInto ¶
func (o *ScanResponse) DeepCopyInto(out *ScanResponse)
DeepCopyInto copies the receiver into the given *ScanResponse.
func (*ScanResponse) DefaultOrder ¶
func (o *ScanResponse) DefaultOrder() []string
DefaultOrder returns the list of default ordering fields.
func (*ScanResponse) Doc ¶
func (o *ScanResponse) Doc() string
Doc returns the documentation for the object
func (*ScanResponse) GetBSON ¶
func (o *ScanResponse) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ScanResponse) GetNamespace ¶
func (o *ScanResponse) GetNamespace() string
GetNamespace returns the Namespace of the receiver.
func (*ScanResponse) Identifier ¶
func (o *ScanResponse) Identifier() string
Identifier returns the value of the object's unique identifier.
func (*ScanResponse) Identity ¶
func (o *ScanResponse) Identity() elemental.Identity
Identity returns the Identity of the object.
func (*ScanResponse) Patch ¶
func (o *ScanResponse) Patch(sparse elemental.SparseIdentifiable)
Patch apply the non nil value of a *SparseScanResponse to the object.
func (*ScanResponse) SetBSON ¶
func (o *ScanResponse) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*ScanResponse) SetIdentifier ¶
func (o *ScanResponse) SetIdentifier(id string)
SetIdentifier sets the value of the object's unique identifier.
func (*ScanResponse) SetNamespace ¶
func (o *ScanResponse) SetNamespace(namespace string)
SetNamespace sets the property Namespace of the receiver using the given value.
func (*ScanResponse) SpecificationForAttribute ¶
func (*ScanResponse) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*ScanResponse) String ¶
func (o *ScanResponse) String() string
func (*ScanResponse) ToSparse ¶
func (o *ScanResponse) ToSparse(fields ...string) elemental.SparseIdentifiable
ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.
func (*ScanResponse) Validate ¶
func (o *ScanResponse) Validate() error
Validate valides the current information stored into the structure.
func (*ScanResponse) ValueForAttribute ¶
func (o *ScanResponse) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
func (*ScanResponse) Version ¶
func (o *ScanResponse) Version() int
Version returns the hardcoded version of the model.
type ScanResponseDecisionValue ¶
type ScanResponseDecisionValue string
ScanResponseDecisionValue represents the possible values for attribute "decision".
const ( // ScanResponseDecisionAllow represents the value Allow. ScanResponseDecisionAllow ScanResponseDecisionValue = "Allow" // ScanResponseDecisionAsk represents the value Ask. ScanResponseDecisionAsk ScanResponseDecisionValue = "Ask" // ScanResponseDecisionBypassed represents the value Bypassed. ScanResponseDecisionBypassed ScanResponseDecisionValue = "Bypassed" // ScanResponseDecisionDeny represents the value Deny. ScanResponseDecisionDeny ScanResponseDecisionValue = "Deny" // ScanResponseDecisionForbiddenUser represents the value ForbiddenUser. ScanResponseDecisionForbiddenUser ScanResponseDecisionValue = "ForbiddenUser" )
type ScanResponseTypeValue ¶
type ScanResponseTypeValue string
ScanResponseTypeValue represents the possible values for attribute "type".
const ( // ScanResponseTypeInput represents the value Input. ScanResponseTypeInput ScanResponseTypeValue = "Input" // ScanResponseTypeOutput represents the value Output. ScanResponseTypeOutput ScanResponseTypeValue = "Output" )
type ScanResponsesList ¶
type ScanResponsesList []*ScanResponse
ScanResponsesList represents a list of ScanResponses
func (ScanResponsesList) Append ¶
func (o ScanResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the ScanResponsesList.
func (ScanResponsesList) Copy ¶
func (o ScanResponsesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the ScanResponsesList.
func (ScanResponsesList) DefaultOrder ¶
func (o ScanResponsesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (ScanResponsesList) Identity ¶
func (o ScanResponsesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (ScanResponsesList) List ¶
func (o ScanResponsesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (ScanResponsesList) ToSparse ¶
func (o ScanResponsesList) ToSparse(fields ...string) elemental.Identifiables
ToSparse returns the ScanResponsesList converted to SparseScanResponsesList. Objects in the list will only contain the given fields. No field means entire field set.
func (ScanResponsesList) Version ¶
func (o ScanResponsesList) Version() int
Version returns the version of the content.
type SparseAnalyzer ¶
type SparseAnalyzer struct { // ID is the identifier of the object. ID *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // The description of the analyzer. Description *string `json:"description,omitempty" msgpack:"description,omitempty" bson:"-" mapstructure:"description,omitempty"` // The detectors the analyzer can use. Detectors *[]*Detector `json:"detectors,omitempty" msgpack:"detectors,omitempty" bson:"-" mapstructure:"detectors,omitempty"` // Tell if the analyzer is enabled by default. Enabled *bool `json:"enabled,omitempty" msgpack:"enabled,omitempty" bson:"-" mapstructure:"enabled,omitempty"` // The group the analyzer belongs to. Group *string `json:"group,omitempty" msgpack:"group,omitempty" bson:"-" mapstructure:"group,omitempty"` // The models used by the analyzer. Models *[]*AnalyzerModel `json:"models,omitempty" msgpack:"models,omitempty" bson:"-" mapstructure:"models,omitempty"` // The name of the analyzer. Name *string `json:"name,omitempty" msgpack:"name,omitempty" bson:"-" mapstructure:"name,omitempty"` // The namespace of the object. Namespace *string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // A list of trigger or globl pattern that the analyzer will react on. // A trigger is the detector Group and Name separated with a /. Triggers *[]string `json:"triggers,omitempty" msgpack:"triggers,omitempty" bson:"-" mapstructure:"triggers,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparseAnalyzer represents the sparse version of a analyzer.
func NewSparseAnalyzer ¶
func NewSparseAnalyzer() *SparseAnalyzer
NewSparseAnalyzer returns a new SparseAnalyzer.
func (*SparseAnalyzer) DeepCopy ¶
func (o *SparseAnalyzer) DeepCopy() *SparseAnalyzer
DeepCopy returns a deep copy if the SparseAnalyzer.
func (*SparseAnalyzer) DeepCopyInto ¶
func (o *SparseAnalyzer) DeepCopyInto(out *SparseAnalyzer)
DeepCopyInto copies the receiver into the given *SparseAnalyzer.
func (*SparseAnalyzer) GetBSON ¶
func (o *SparseAnalyzer) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseAnalyzer) GetNamespace ¶
func (o *SparseAnalyzer) GetNamespace() (out string)
GetNamespace returns the Namespace of the receiver.
func (*SparseAnalyzer) Identifier ¶
func (o *SparseAnalyzer) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparseAnalyzer) Identity ¶
func (o *SparseAnalyzer) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparseAnalyzer) SetBSON ¶
func (o *SparseAnalyzer) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseAnalyzer) SetIdentifier ¶
func (o *SparseAnalyzer) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparseAnalyzer) SetNamespace ¶
func (o *SparseAnalyzer) SetNamespace(namespace string)
SetNamespace sets the property Namespace of the receiver using the address of the given value.
func (*SparseAnalyzer) ToPlain ¶
func (o *SparseAnalyzer) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparseAnalyzer) Version ¶
func (o *SparseAnalyzer) Version() int
Version returns the hardcoded version of the model.
type SparseAnalyzersList ¶
type SparseAnalyzersList []*SparseAnalyzer
SparseAnalyzersList represents a list of SparseAnalyzers
func (SparseAnalyzersList) Append ¶
func (o SparseAnalyzersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparseAnalyzersList.
func (SparseAnalyzersList) Copy ¶
func (o SparseAnalyzersList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparseAnalyzersList.
func (SparseAnalyzersList) DefaultOrder ¶
func (o SparseAnalyzersList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparseAnalyzersList) Identity ¶
func (o SparseAnalyzersList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparseAnalyzersList) List ¶
func (o SparseAnalyzersList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparseAnalyzersList) ToPlain ¶
func (o SparseAnalyzersList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparseAnalyzersList converted to AnalyzersList.
func (SparseAnalyzersList) Version ¶
func (o SparseAnalyzersList) Version() int
Version returns the version of the content.
type SparseLatenciesList ¶
type SparseLatenciesList []*SparseLatency
SparseLatenciesList represents a list of SparseLatencies
func (SparseLatenciesList) Append ¶
func (o SparseLatenciesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparseLatenciesList.
func (SparseLatenciesList) Copy ¶
func (o SparseLatenciesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparseLatenciesList.
func (SparseLatenciesList) DefaultOrder ¶
func (o SparseLatenciesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparseLatenciesList) Identity ¶
func (o SparseLatenciesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparseLatenciesList) List ¶
func (o SparseLatenciesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparseLatenciesList) ToPlain ¶
func (o SparseLatenciesList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparseLatenciesList converted to LatenciesList.
func (SparseLatenciesList) Version ¶
func (o SparseLatenciesList) Version() int
Version returns the version of the content.
type SparseLatency ¶
type SparseLatency struct { // How much time it took to run the access policy in nanoseconds. AccessPolicy *int `` /* 130-byte string literal not displayed */ // How much time it took to run content analysis in nanoseconds. Analysis *int `json:"analysis,omitempty" msgpack:"analysis,omitempty" bson:"analysis,omitempty" mapstructure:"analysis,omitempty"` // How much time it took to run the assign policy in nanoseconds. AssignPolicy *int `` /* 130-byte string literal not displayed */ // How much time it took to run content policy in nanoseconds. ContentPolicy *int `` /* 134-byte string literal not displayed */ // How much time it took to run input or output extraction in nanoseconds. Extraction *int `json:"extraction,omitempty" msgpack:"extraction,omitempty" bson:"extraction,omitempty" mapstructure:"extraction,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparseLatency represents the sparse version of a latency.
func NewSparseLatency ¶
func NewSparseLatency() *SparseLatency
NewSparseLatency returns a new SparseLatency.
func (*SparseLatency) DeepCopy ¶
func (o *SparseLatency) DeepCopy() *SparseLatency
DeepCopy returns a deep copy if the SparseLatency.
func (*SparseLatency) DeepCopyInto ¶
func (o *SparseLatency) DeepCopyInto(out *SparseLatency)
DeepCopyInto copies the receiver into the given *SparseLatency.
func (*SparseLatency) GetBSON ¶
func (o *SparseLatency) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseLatency) Identifier ¶
func (o *SparseLatency) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparseLatency) Identity ¶
func (o *SparseLatency) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparseLatency) SetBSON ¶
func (o *SparseLatency) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseLatency) SetIdentifier ¶
func (o *SparseLatency) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparseLatency) ToPlain ¶
func (o *SparseLatency) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparseLatency) Version ¶
func (o *SparseLatency) Version() int
Version returns the hardcoded version of the model.
type SparsePoliceRequest ¶
type SparsePoliceRequest struct { // Annotations attached to the extraction. Annotations *map[string]string `json:"annotations,omitempty" msgpack:"annotations,omitempty" bson:"-" mapstructure:"annotations,omitempty"` // How to anonymize the data. If deanonymize is true, then VariablSize is required. Anonymization *PoliceRequestAnonymizationValue `` /* 134-byte string literal not displayed */ // In the case of a contentPolicy that asks for a confirmation, this is the // hash you must send back to bypass the block. This is only useful when a // content policy has been set or is evaluated remotely. BypassHash *string `json:"bypassHash,omitempty" msgpack:"bypassHash,omitempty" bson:"bypasshash,omitempty" mapstructure:"bypassHash,omitempty"` // The extractions to request. Extractions *[]*ExtractionRequest `json:"extractions,omitempty" msgpack:"extractions,omitempty" bson:"-" mapstructure:"extractions,omitempty"` // Messages to process and provide detections for. Use data in extractions for // processing binary data. Messages *[]string `json:"messages,omitempty" msgpack:"messages,omitempty" bson:"-" mapstructure:"messages,omitempty"` // The name of the provider to use for policy resolutions. If not set, it will // default to the principal name (the application itself). Provider *string `json:"provider,omitempty" msgpack:"provider,omitempty" bson:"-" mapstructure:"provider,omitempty"` // The type of text. Type *PoliceRequestTypeValue `json:"type,omitempty" msgpack:"type,omitempty" bson:"type,omitempty" mapstructure:"type,omitempty"` // The user information that the PoliceRequest is passing on to the policy // engine that can be used for additional policy resolution. User *PoliceExternalUser `json:"user,omitempty" msgpack:"user,omitempty" bson:"-" mapstructure:"user,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparsePoliceRequest represents the sparse version of a policerequest.
func NewSparsePoliceRequest ¶
func NewSparsePoliceRequest() *SparsePoliceRequest
NewSparsePoliceRequest returns a new SparsePoliceRequest.
func (*SparsePoliceRequest) DeepCopy ¶
func (o *SparsePoliceRequest) DeepCopy() *SparsePoliceRequest
DeepCopy returns a deep copy if the SparsePoliceRequest.
func (*SparsePoliceRequest) DeepCopyInto ¶
func (o *SparsePoliceRequest) DeepCopyInto(out *SparsePoliceRequest)
DeepCopyInto copies the receiver into the given *SparsePoliceRequest.
func (*SparsePoliceRequest) GetBSON ¶
func (o *SparsePoliceRequest) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePoliceRequest) Identifier ¶
func (o *SparsePoliceRequest) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparsePoliceRequest) Identity ¶
func (o *SparsePoliceRequest) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparsePoliceRequest) SetBSON ¶
func (o *SparsePoliceRequest) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePoliceRequest) SetIdentifier ¶
func (o *SparsePoliceRequest) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparsePoliceRequest) ToPlain ¶
func (o *SparsePoliceRequest) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparsePoliceRequest) Version ¶
func (o *SparsePoliceRequest) Version() int
Version returns the hardcoded version of the model.
type SparsePoliceRequestsList ¶
type SparsePoliceRequestsList []*SparsePoliceRequest
SparsePoliceRequestsList represents a list of SparsePoliceRequests
func (SparsePoliceRequestsList) Append ¶
func (o SparsePoliceRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparsePoliceRequestsList.
func (SparsePoliceRequestsList) Copy ¶
func (o SparsePoliceRequestsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparsePoliceRequestsList.
func (SparsePoliceRequestsList) DefaultOrder ¶
func (o SparsePoliceRequestsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparsePoliceRequestsList) Identity ¶
func (o SparsePoliceRequestsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparsePoliceRequestsList) List ¶
func (o SparsePoliceRequestsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparsePoliceRequestsList) ToPlain ¶
func (o SparsePoliceRequestsList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparsePoliceRequestsList converted to PoliceRequestsList.
func (SparsePoliceRequestsList) Version ¶
func (o SparsePoliceRequestsList) Version() int
Version returns the version of the content.
type SparsePoliceResponse ¶
type SparsePoliceResponse struct { // ID is the identifier of the object. ID *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // List of alerts that got raised during the policy resolution. Alerts *[]*AlertEvent `json:"alerts,omitempty" msgpack:"alerts,omitempty" bson:"alerts,omitempty" mapstructure:"alerts,omitempty"` // Annotations attached to the log. Annotations *map[string]string `` /* 126-byte string literal not displayed */ // The client used to send the request. Client *string `json:"client,omitempty" msgpack:"client,omitempty" bson:"client,omitempty" mapstructure:"client,omitempty"` // The version of the client used to send the request. ClientVersion *string `` /* 134-byte string literal not displayed */ // Tell what was the decision about the data. Decision *PoliceResponseDecisionValue `json:"decision,omitempty" msgpack:"decision,omitempty" bson:"decision,omitempty" mapstructure:"decision,omitempty"` // The extractions to log. Extractions *[]*Extraction `` /* 126-byte string literal not displayed */ // The hash of the input. Hash *string `json:"hash,omitempty" msgpack:"hash,omitempty" bson:"hash,omitempty" mapstructure:"hash,omitempty"` // Information about latency of various stage of request and response. Latency *Latency `json:"latency,omitempty" msgpack:"latency,omitempty" bson:"latency,omitempty" mapstructure:"latency,omitempty"` // The namespace of the object. Namespace *string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // The name of the particular pipeline that extracted the text. PipelineName *string `` /* 130-byte string literal not displayed */ // The principal of the object. Principal *Principal `json:"principal,omitempty" msgpack:"principal,omitempty" bson:"principal,omitempty" mapstructure:"principal,omitempty"` // the provider to use. Provider *string `json:"provider,omitempty" msgpack:"provider,omitempty" bson:"provider,omitempty" mapstructure:"provider,omitempty"` // The various reasons returned by the policy engine. Reasons *[]string `json:"reasons,omitempty" msgpack:"reasons,omitempty" bson:"reasons,omitempty" mapstructure:"reasons,omitempty"` // The summary of the extractions. Summary *ExtractionSummary `json:"summary,omitempty" msgpack:"summary,omitempty" bson:"summary,omitempty" mapstructure:"summary,omitempty"` // Set the time of the message request. Time *time.Time `json:"time,omitempty" msgpack:"time,omitempty" bson:"-" mapstructure:"time,omitempty"` // The type of text. Type *PoliceResponseTypeValue `json:"type,omitempty" msgpack:"type,omitempty" bson:"type,omitempty" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparsePoliceResponse represents the sparse version of a policeresponse.
func NewSparsePoliceResponse ¶
func NewSparsePoliceResponse() *SparsePoliceResponse
NewSparsePoliceResponse returns a new SparsePoliceResponse.
func (*SparsePoliceResponse) DeepCopy ¶
func (o *SparsePoliceResponse) DeepCopy() *SparsePoliceResponse
DeepCopy returns a deep copy if the SparsePoliceResponse.
func (*SparsePoliceResponse) DeepCopyInto ¶
func (o *SparsePoliceResponse) DeepCopyInto(out *SparsePoliceResponse)
DeepCopyInto copies the receiver into the given *SparsePoliceResponse.
func (*SparsePoliceResponse) GetBSON ¶
func (o *SparsePoliceResponse) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePoliceResponse) GetNamespace ¶
func (o *SparsePoliceResponse) GetNamespace() (out string)
GetNamespace returns the Namespace of the receiver.
func (*SparsePoliceResponse) Identifier ¶
func (o *SparsePoliceResponse) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparsePoliceResponse) Identity ¶
func (o *SparsePoliceResponse) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparsePoliceResponse) SetBSON ¶
func (o *SparsePoliceResponse) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePoliceResponse) SetIdentifier ¶
func (o *SparsePoliceResponse) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparsePoliceResponse) SetNamespace ¶
func (o *SparsePoliceResponse) SetNamespace(namespace string)
SetNamespace sets the property Namespace of the receiver using the address of the given value.
func (*SparsePoliceResponse) ToPlain ¶
func (o *SparsePoliceResponse) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparsePoliceResponse) Version ¶
func (o *SparsePoliceResponse) Version() int
Version returns the hardcoded version of the model.
type SparsePoliceResponsesList ¶
type SparsePoliceResponsesList []*SparsePoliceResponse
SparsePoliceResponsesList represents a list of SparsePoliceResponses
func (SparsePoliceResponsesList) Append ¶
func (o SparsePoliceResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparsePoliceResponsesList.
func (SparsePoliceResponsesList) Copy ¶
func (o SparsePoliceResponsesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparsePoliceResponsesList.
func (SparsePoliceResponsesList) DefaultOrder ¶
func (o SparsePoliceResponsesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparsePoliceResponsesList) Identity ¶
func (o SparsePoliceResponsesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparsePoliceResponsesList) List ¶
func (o SparsePoliceResponsesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparsePoliceResponsesList) ToPlain ¶
func (o SparsePoliceResponsesList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparsePoliceResponsesList converted to PoliceResponsesList.
func (SparsePoliceResponsesList) Version ¶
func (o SparsePoliceResponsesList) Version() int
Version returns the version of the content.
type SparsePrincipal ¶
type SparsePrincipal struct { // The application principal information if type is App. App *PrincipalApp `json:"app,omitempty" msgpack:"app,omitempty" bson:"app,omitempty" mapstructure:"app,omitempty"` // The type of authentication. AuthType *PrincipalAuthTypeValue `json:"authType,omitempty" msgpack:"authType,omitempty" bson:"authtype,omitempty" mapstructure:"authType,omitempty"` // List of claims extracted from the user query. Claims *[]string `json:"claims,omitempty" msgpack:"claims,omitempty" bson:"claims,omitempty" mapstructure:"claims,omitempty"` // The team that was used to authorize the request. Team *string `json:"team,omitempty" msgpack:"team,omitempty" bson:"team,omitempty" mapstructure:"team,omitempty"` // The name of the token, if any. TokenName *string `json:"tokenName,omitempty" msgpack:"tokenName,omitempty" bson:"tokenname,omitempty" mapstructure:"tokenName,omitempty"` // The type of principal. Type *PrincipalTypeValue `json:"type,omitempty" msgpack:"type,omitempty" bson:"type,omitempty" mapstructure:"type,omitempty"` // The user principal information if type is User. User *PrincipalUser `json:"user,omitempty" msgpack:"user,omitempty" bson:"user,omitempty" mapstructure:"user,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparsePrincipal represents the sparse version of a principal.
func NewSparsePrincipal ¶
func NewSparsePrincipal() *SparsePrincipal
NewSparsePrincipal returns a new SparsePrincipal.
func (*SparsePrincipal) DeepCopy ¶
func (o *SparsePrincipal) DeepCopy() *SparsePrincipal
DeepCopy returns a deep copy if the SparsePrincipal.
func (*SparsePrincipal) DeepCopyInto ¶
func (o *SparsePrincipal) DeepCopyInto(out *SparsePrincipal)
DeepCopyInto copies the receiver into the given *SparsePrincipal.
func (*SparsePrincipal) GetBSON ¶
func (o *SparsePrincipal) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipal) Identifier ¶
func (o *SparsePrincipal) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparsePrincipal) Identity ¶
func (o *SparsePrincipal) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparsePrincipal) SetBSON ¶
func (o *SparsePrincipal) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipal) SetIdentifier ¶
func (o *SparsePrincipal) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparsePrincipal) ToPlain ¶
func (o *SparsePrincipal) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparsePrincipal) Version ¶
func (o *SparsePrincipal) Version() int
Version returns the hardcoded version of the model.
type SparsePrincipalApp ¶
type SparsePrincipalApp struct { // The list of labels attached to an application request. Labels *[]string `json:"labels,omitempty" msgpack:"labels,omitempty" bson:"labels,omitempty" mapstructure:"labels,omitempty"` // The name of the application. Name *string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"` // The tier of the application request. Tier *string `json:"tier,omitempty" msgpack:"tier,omitempty" bson:"tier,omitempty" mapstructure:"tier,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparsePrincipalApp represents the sparse version of a principalapp.
func NewSparsePrincipalApp ¶
func NewSparsePrincipalApp() *SparsePrincipalApp
NewSparsePrincipalApp returns a new SparsePrincipalApp.
func (*SparsePrincipalApp) DeepCopy ¶
func (o *SparsePrincipalApp) DeepCopy() *SparsePrincipalApp
DeepCopy returns a deep copy if the SparsePrincipalApp.
func (*SparsePrincipalApp) DeepCopyInto ¶
func (o *SparsePrincipalApp) DeepCopyInto(out *SparsePrincipalApp)
DeepCopyInto copies the receiver into the given *SparsePrincipalApp.
func (*SparsePrincipalApp) GetBSON ¶
func (o *SparsePrincipalApp) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipalApp) Identifier ¶
func (o *SparsePrincipalApp) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparsePrincipalApp) Identity ¶
func (o *SparsePrincipalApp) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparsePrincipalApp) SetBSON ¶
func (o *SparsePrincipalApp) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipalApp) SetIdentifier ¶
func (o *SparsePrincipalApp) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparsePrincipalApp) ToPlain ¶
func (o *SparsePrincipalApp) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparsePrincipalApp) Version ¶
func (o *SparsePrincipalApp) Version() int
Version returns the hardcoded version of the model.
type SparsePrincipalAppsList ¶
type SparsePrincipalAppsList []*SparsePrincipalApp
SparsePrincipalAppsList represents a list of SparsePrincipalApps
func (SparsePrincipalAppsList) Append ¶
func (o SparsePrincipalAppsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparsePrincipalAppsList.
func (SparsePrincipalAppsList) Copy ¶
func (o SparsePrincipalAppsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparsePrincipalAppsList.
func (SparsePrincipalAppsList) DefaultOrder ¶
func (o SparsePrincipalAppsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparsePrincipalAppsList) Identity ¶
func (o SparsePrincipalAppsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparsePrincipalAppsList) List ¶
func (o SparsePrincipalAppsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparsePrincipalAppsList) ToPlain ¶
func (o SparsePrincipalAppsList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparsePrincipalAppsList converted to PrincipalAppsList.
func (SparsePrincipalAppsList) Version ¶
func (o SparsePrincipalAppsList) Version() int
Version returns the version of the content.
type SparsePrincipalUser ¶
type SparsePrincipalUser struct { // Identification bit that will be used to identify the origin of the request. Name *string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparsePrincipalUser represents the sparse version of a principaluser.
func NewSparsePrincipalUser ¶
func NewSparsePrincipalUser() *SparsePrincipalUser
NewSparsePrincipalUser returns a new SparsePrincipalUser.
func (*SparsePrincipalUser) DeepCopy ¶
func (o *SparsePrincipalUser) DeepCopy() *SparsePrincipalUser
DeepCopy returns a deep copy if the SparsePrincipalUser.
func (*SparsePrincipalUser) DeepCopyInto ¶
func (o *SparsePrincipalUser) DeepCopyInto(out *SparsePrincipalUser)
DeepCopyInto copies the receiver into the given *SparsePrincipalUser.
func (*SparsePrincipalUser) GetBSON ¶
func (o *SparsePrincipalUser) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipalUser) Identifier ¶
func (o *SparsePrincipalUser) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparsePrincipalUser) Identity ¶
func (o *SparsePrincipalUser) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparsePrincipalUser) SetBSON ¶
func (o *SparsePrincipalUser) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparsePrincipalUser) SetIdentifier ¶
func (o *SparsePrincipalUser) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparsePrincipalUser) ToPlain ¶
func (o *SparsePrincipalUser) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparsePrincipalUser) Version ¶
func (o *SparsePrincipalUser) Version() int
Version returns the hardcoded version of the model.
type SparsePrincipalUsersList ¶
type SparsePrincipalUsersList []*SparsePrincipalUser
SparsePrincipalUsersList represents a list of SparsePrincipalUsers
func (SparsePrincipalUsersList) Append ¶
func (o SparsePrincipalUsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparsePrincipalUsersList.
func (SparsePrincipalUsersList) Copy ¶
func (o SparsePrincipalUsersList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparsePrincipalUsersList.
func (SparsePrincipalUsersList) DefaultOrder ¶
func (o SparsePrincipalUsersList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparsePrincipalUsersList) Identity ¶
func (o SparsePrincipalUsersList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparsePrincipalUsersList) List ¶
func (o SparsePrincipalUsersList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparsePrincipalUsersList) ToPlain ¶
func (o SparsePrincipalUsersList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparsePrincipalUsersList converted to PrincipalUsersList.
func (SparsePrincipalUsersList) Version ¶
func (o SparsePrincipalUsersList) Version() int
Version returns the version of the content.
type SparsePrincipalsList ¶
type SparsePrincipalsList []*SparsePrincipal
SparsePrincipalsList represents a list of SparsePrincipals
func (SparsePrincipalsList) Append ¶
func (o SparsePrincipalsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparsePrincipalsList.
func (SparsePrincipalsList) Copy ¶
func (o SparsePrincipalsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparsePrincipalsList.
func (SparsePrincipalsList) DefaultOrder ¶
func (o SparsePrincipalsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparsePrincipalsList) Identity ¶
func (o SparsePrincipalsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparsePrincipalsList) List ¶
func (o SparsePrincipalsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparsePrincipalsList) ToPlain ¶
func (o SparsePrincipalsList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparsePrincipalsList converted to PrincipalsList.
func (SparsePrincipalsList) Version ¶
func (o SparsePrincipalsList) Version() int
Version returns the version of the content.
type SparseScanRequest ¶
type SparseScanRequest struct { // AccessPolicy allows to pass optional Rego access policy. If not set, // The action is always Allow, // If it is set, it will be run, and the final decision will be computed based // on that policy. // If the rego code does not start with package main, then the needed // classic package definition and acuvity imports will be added // automatically. // If the code starts with package main, then everything remains untouched. AccessPolicy *string `json:"accessPolicy,omitempty" msgpack:"accessPolicy,omitempty" bson:"-" mapstructure:"accessPolicy,omitempty"` // The name of the analyzers to run by the pipelines. If empty, it means all of // them. Possible values are PIIs, Secrets, Topics, Confidentiality, Exploits. Analyzers *[]string `json:"analyzers,omitempty" msgpack:"analyzers,omitempty" bson:"-" mapstructure:"analyzers,omitempty"` // Annotations attached to the extraction. Annotations *map[string]string `json:"annotations,omitempty" msgpack:"annotations,omitempty" bson:"-" mapstructure:"annotations,omitempty"` // How to anonymize the data. If deanonymize is true, then VariablSize is required. Anonymization *ScanRequestAnonymizationValue `` /* 134-byte string literal not displayed */ // In the case of a contentPolicy that asks for a confirmation, this is the // hash you must send back to bypass the block. This is only useful when a // content policy has been set or is evaluated remotely. BypassHash *string `json:"bypassHash,omitempty" msgpack:"bypassHash,omitempty" bson:"bypasshash,omitempty" mapstructure:"bypassHash,omitempty"` // ContentPolicy allows to pass optional Rego content policy. If not set, // The action is always Allow, and there cannot be any alerts raised etc // If it is set, it will be run, and the final decision will be computed based // on that policy. // If the rego code does not start with package main, then the needed // classic package definition and acuvity imports will be added // automatically. // If the code starts with package main, then everything remains untouched. ContentPolicy *string `json:"contentPolicy,omitempty" msgpack:"contentPolicy,omitempty" bson:"-" mapstructure:"contentPolicy,omitempty"` // The extractions to request. Extractions *[]*ExtractionRequest `json:"extractions,omitempty" msgpack:"extractions,omitempty" bson:"-" mapstructure:"extractions,omitempty"` // The keywords found during classification. Keywords *[]string `json:"keywords,omitempty" msgpack:"keywords,omitempty" bson:"-" mapstructure:"keywords,omitempty"` // Messages to process and provide detections for. Use data in extractions for // processing binary data. Messages *[]string `json:"messages,omitempty" msgpack:"messages,omitempty" bson:"-" mapstructure:"messages,omitempty"` // If true, the system will not log the contents that were scanned. MinimalLogging *bool `json:"minimalLogging,omitempty" msgpack:"minimalLogging,omitempty" bson:"-" mapstructure:"minimalLogging,omitempty"` // The redactions to perform if they are detected. Redactions *[]string `json:"redactions,omitempty" msgpack:"redactions,omitempty" bson:"redactions,omitempty" mapstructure:"redactions,omitempty"` // The type of text. Type *ScanRequestTypeValue `json:"type,omitempty" msgpack:"type,omitempty" bson:"type,omitempty" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparseScanRequest represents the sparse version of a scanrequest.
func NewSparseScanRequest ¶
func NewSparseScanRequest() *SparseScanRequest
NewSparseScanRequest returns a new SparseScanRequest.
func (*SparseScanRequest) DeepCopy ¶
func (o *SparseScanRequest) DeepCopy() *SparseScanRequest
DeepCopy returns a deep copy if the SparseScanRequest.
func (*SparseScanRequest) DeepCopyInto ¶
func (o *SparseScanRequest) DeepCopyInto(out *SparseScanRequest)
DeepCopyInto copies the receiver into the given *SparseScanRequest.
func (*SparseScanRequest) GetBSON ¶
func (o *SparseScanRequest) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseScanRequest) Identifier ¶
func (o *SparseScanRequest) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparseScanRequest) Identity ¶
func (o *SparseScanRequest) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparseScanRequest) SetBSON ¶
func (o *SparseScanRequest) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseScanRequest) SetIdentifier ¶
func (o *SparseScanRequest) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparseScanRequest) ToPlain ¶
func (o *SparseScanRequest) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparseScanRequest) Version ¶
func (o *SparseScanRequest) Version() int
Version returns the hardcoded version of the model.
type SparseScanRequestsList ¶
type SparseScanRequestsList []*SparseScanRequest
SparseScanRequestsList represents a list of SparseScanRequests
func (SparseScanRequestsList) Append ¶
func (o SparseScanRequestsList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparseScanRequestsList.
func (SparseScanRequestsList) Copy ¶
func (o SparseScanRequestsList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparseScanRequestsList.
func (SparseScanRequestsList) DefaultOrder ¶
func (o SparseScanRequestsList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparseScanRequestsList) Identity ¶
func (o SparseScanRequestsList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparseScanRequestsList) List ¶
func (o SparseScanRequestsList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparseScanRequestsList) ToPlain ¶
func (o SparseScanRequestsList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparseScanRequestsList converted to ScanRequestsList.
func (SparseScanRequestsList) Version ¶
func (o SparseScanRequestsList) Version() int
Version returns the version of the content.
type SparseScanResponse ¶
type SparseScanResponse struct { // ID is the identifier of the object. ID *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"-" mapstructure:"ID,omitempty"` // List of alerts that got raised during the policy resolution. Alerts *[]*AlertEvent `json:"alerts,omitempty" msgpack:"alerts,omitempty" bson:"alerts,omitempty" mapstructure:"alerts,omitempty"` // Annotations attached to the log. Annotations *map[string]string `` /* 126-byte string literal not displayed */ // The client used to send the request. Client *string `json:"client,omitempty" msgpack:"client,omitempty" bson:"client,omitempty" mapstructure:"client,omitempty"` // The version of the client used to send the request. ClientVersion *string `` /* 134-byte string literal not displayed */ // Tell what was the decision about the data. Decision *ScanResponseDecisionValue `json:"decision,omitempty" msgpack:"decision,omitempty" bson:"decision,omitempty" mapstructure:"decision,omitempty"` // The extractions to log. Extractions *[]*Extraction `` /* 126-byte string literal not displayed */ // The hash of the input. Hash *string `json:"hash,omitempty" msgpack:"hash,omitempty" bson:"hash,omitempty" mapstructure:"hash,omitempty"` // Information about latency of various stage of request and response. Latency *Latency `json:"latency,omitempty" msgpack:"latency,omitempty" bson:"latency,omitempty" mapstructure:"latency,omitempty"` // The namespace of the object. Namespace *string `json:"namespace,omitempty" msgpack:"namespace,omitempty" bson:"namespace,omitempty" mapstructure:"namespace,omitempty"` // The name of the particular pipeline that extracted the text. PipelineName *string `` /* 130-byte string literal not displayed */ // The principal of the object. Principal *Principal `json:"principal,omitempty" msgpack:"principal,omitempty" bson:"principal,omitempty" mapstructure:"principal,omitempty"` // the provider to use. Provider *string `json:"provider,omitempty" msgpack:"provider,omitempty" bson:"provider,omitempty" mapstructure:"provider,omitempty"` // The various reasons returned by the policy engine. Reasons *[]string `json:"reasons,omitempty" msgpack:"reasons,omitempty" bson:"reasons,omitempty" mapstructure:"reasons,omitempty"` // The summary of the extractions. Summary *ExtractionSummary `json:"summary,omitempty" msgpack:"summary,omitempty" bson:"summary,omitempty" mapstructure:"summary,omitempty"` // Set the time of the message request. Time *time.Time `json:"time,omitempty" msgpack:"time,omitempty" bson:"-" mapstructure:"time,omitempty"` // The type of text. Type *ScanResponseTypeValue `json:"type,omitempty" msgpack:"type,omitempty" bson:"type,omitempty" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
SparseScanResponse represents the sparse version of a scanresponse.
func NewSparseScanResponse ¶
func NewSparseScanResponse() *SparseScanResponse
NewSparseScanResponse returns a new SparseScanResponse.
func (*SparseScanResponse) DeepCopy ¶
func (o *SparseScanResponse) DeepCopy() *SparseScanResponse
DeepCopy returns a deep copy if the SparseScanResponse.
func (*SparseScanResponse) DeepCopyInto ¶
func (o *SparseScanResponse) DeepCopyInto(out *SparseScanResponse)
DeepCopyInto copies the receiver into the given *SparseScanResponse.
func (*SparseScanResponse) GetBSON ¶
func (o *SparseScanResponse) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseScanResponse) GetNamespace ¶
func (o *SparseScanResponse) GetNamespace() (out string)
GetNamespace returns the Namespace of the receiver.
func (*SparseScanResponse) Identifier ¶
func (o *SparseScanResponse) Identifier() string
Identifier returns the value of the sparse object's unique identifier.
func (*SparseScanResponse) Identity ¶
func (o *SparseScanResponse) Identity() elemental.Identity
Identity returns the Identity of the sparse object.
func (*SparseScanResponse) SetBSON ¶
func (o *SparseScanResponse) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*SparseScanResponse) SetIdentifier ¶
func (o *SparseScanResponse) SetIdentifier(id string)
SetIdentifier sets the value of the sparse object's unique identifier.
func (*SparseScanResponse) SetNamespace ¶
func (o *SparseScanResponse) SetNamespace(namespace string)
SetNamespace sets the property Namespace of the receiver using the address of the given value.
func (*SparseScanResponse) ToPlain ¶
func (o *SparseScanResponse) ToPlain() elemental.PlainIdentifiable
ToPlain returns the plain version of the sparse model.
func (*SparseScanResponse) Version ¶
func (o *SparseScanResponse) Version() int
Version returns the hardcoded version of the model.
type SparseScanResponsesList ¶
type SparseScanResponsesList []*SparseScanResponse
SparseScanResponsesList represents a list of SparseScanResponses
func (SparseScanResponsesList) Append ¶
func (o SparseScanResponsesList) Append(objects ...elemental.Identifiable) elemental.Identifiables
Append appends the objects to the a new copy of the SparseScanResponsesList.
func (SparseScanResponsesList) Copy ¶
func (o SparseScanResponsesList) Copy() elemental.Identifiables
Copy returns a pointer to a copy the SparseScanResponsesList.
func (SparseScanResponsesList) DefaultOrder ¶
func (o SparseScanResponsesList) DefaultOrder() []string
DefaultOrder returns the default ordering fields of the content.
func (SparseScanResponsesList) Identity ¶
func (o SparseScanResponsesList) Identity() elemental.Identity
Identity returns the identity of the objects in the list.
func (SparseScanResponsesList) List ¶
func (o SparseScanResponsesList) List() elemental.IdentifiablesList
List converts the object to an elemental.IdentifiablesList.
func (SparseScanResponsesList) ToPlain ¶
func (o SparseScanResponsesList) ToPlain() elemental.IdentifiablesList
ToPlain returns the SparseScanResponsesList converted to ScanResponsesList.
func (SparseScanResponsesList) Version ¶
func (o SparseScanResponsesList) Version() int
Version returns the version of the content.
type TextualDetection ¶
type TextualDetection struct { // The original detected content. Content string `json:"-" msgpack:"-" bson:"-" mapstructure:"-,omitempty"` // The end position of the detection in the original data. End int `json:"end" msgpack:"end" bson:"end" mapstructure:"end,omitempty"` // The key that is used in the name's place, If empty, a sequence of X's are used. Key string `json:"key,omitempty" msgpack:"key,omitempty" bson:"key,omitempty" mapstructure:"key,omitempty"` // The name of the detection. Name string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"` // If true this detection has been redacted. Redacted bool `json:"redacted,omitempty" msgpack:"redacted,omitempty" bson:"redacted,omitempty" mapstructure:"redacted,omitempty"` // The end position of the detection in the redacted data. RedactedEnd int `` /* 126-byte string literal not displayed */ // The start position of the detection in the redacted data. RedactedStart int `` /* 134-byte string literal not displayed */ // The confidence score of the detection. Score float64 `json:"score" msgpack:"score" bson:"score" mapstructure:"score,omitempty"` // The start position of the detection in the original data. Start int `json:"start" msgpack:"start" bson:"start" mapstructure:"start,omitempty"` // The type of detection. Type TextualDetectionTypeValue `json:"type" msgpack:"type" bson:"type" mapstructure:"type,omitempty"` ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"` }
TextualDetection represents the model of a textualdetection
func NewTextualDetection ¶
func NewTextualDetection() *TextualDetection
NewTextualDetection returns a new *TextualDetection
func (*TextualDetection) AttributeSpecifications ¶
func (*TextualDetection) AttributeSpecifications() map[string]elemental.AttributeSpecification
AttributeSpecifications returns the full attribute specifications map.
func (*TextualDetection) BleveType ¶
func (o *TextualDetection) BleveType() string
BleveType implements the bleve.Classifier Interface.
func (*TextualDetection) DeepCopy ¶
func (o *TextualDetection) DeepCopy() *TextualDetection
DeepCopy returns a deep copy if the TextualDetection.
func (*TextualDetection) DeepCopyInto ¶
func (o *TextualDetection) DeepCopyInto(out *TextualDetection)
DeepCopyInto copies the receiver into the given *TextualDetection.
func (*TextualDetection) GetBSON ¶
func (o *TextualDetection) GetBSON() (any, error)
GetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*TextualDetection) SetBSON ¶
func (o *TextualDetection) SetBSON(raw bson.Raw) error
SetBSON implements the bson marshaling interface. This is used to transparently convert ID to MongoDBID as ObectID.
func (*TextualDetection) SpecificationForAttribute ¶
func (*TextualDetection) SpecificationForAttribute(name string) elemental.AttributeSpecification
SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.
func (*TextualDetection) Validate ¶
func (o *TextualDetection) Validate() error
Validate valides the current information stored into the structure.
func (*TextualDetection) ValueForAttribute ¶
func (o *TextualDetection) ValueForAttribute(name string) any
ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.
type TextualDetectionTypeValue ¶
type TextualDetectionTypeValue string
TextualDetectionTypeValue represents the possible values for attribute "type".
const ( // TextualDetectionTypeKeyword represents the value Keyword. TextualDetectionTypeKeyword TextualDetectionTypeValue = "Keyword" // TextualDetectionTypePII represents the value PII. TextualDetectionTypePII TextualDetectionTypeValue = "PII" // TextualDetectionTypeSecret represents the value Secret. TextualDetectionTypeSecret TextualDetectionTypeValue = "Secret" )
Source Files
¶
- alertevent.go
- analyzer.go
- analyzermodel.go
- custom_validations.go
- detector.go
- extraction.go
- extractioninformation.go
- extractionrequest.go
- extractionsummary.go
- identities_registry.go
- latency.go
- modality.go
- openapi.go
- policeexternaluser.go
- policerequest.go
- policeresponse.go
- principal.go
- principalapp.go
- principaluser.go
- relationships_registry.go
- root.go
- scanrequest.go
- scanresponse.go
- textualdetection.go