Documentation
¶
Overview ¶
Code generated by entx integration mapping generator. DO NOT EDIT.
Index ¶
Constants ¶
View Source
const ( IntegrationMappingSchemaDirectoryAccount = "DirectoryAccount" IntegrationMappingSchemaVulnerability = "Vulnerability" )
View Source
const ( IntegrationMappingDirectoryAccountAccountType = "accountType" IntegrationMappingDirectoryAccountAvatarRemoteURL = "avatarRemoteURL" IntegrationMappingDirectoryAccountAvatarUpdatedAt = "avatarUpdatedAt" IntegrationMappingDirectoryAccountCanonicalEmail = "canonicalEmail" IntegrationMappingDirectoryAccountDepartment = "department" IntegrationMappingDirectoryAccountDirectoryName = "directoryName" IntegrationMappingDirectoryAccountDirectorySyncRunID = "directorySyncRunID" IntegrationMappingDirectoryAccountDisplayName = "displayName" IntegrationMappingDirectoryAccountEnvironmentID = "environmentID" IntegrationMappingDirectoryAccountEnvironmentName = "environmentName" IntegrationMappingDirectoryAccountExternalID = "externalID" IntegrationMappingDirectoryAccountFamilyName = "familyName" IntegrationMappingDirectoryAccountGivenName = "givenName" IntegrationMappingDirectoryAccountIdentityHolderID = "identityHolderID" IntegrationMappingDirectoryAccountIntegrationID = "integrationID" IntegrationMappingDirectoryAccountJobTitle = "jobTitle" IntegrationMappingDirectoryAccountLastLoginAt = "lastLoginAt" IntegrationMappingDirectoryAccountLastSeenIP = "lastSeenIP" IntegrationMappingDirectoryAccountMfaState = "mfaState" IntegrationMappingDirectoryAccountObservedAt = "observedAt" IntegrationMappingDirectoryAccountOrganizationUnit = "organizationUnit" IntegrationMappingDirectoryAccountPlatformID = "platformID" IntegrationMappingDirectoryAccountProfile = "profile" IntegrationMappingDirectoryAccountProfileHash = "profileHash" IntegrationMappingDirectoryAccountScopeID = "scopeID" IntegrationMappingDirectoryAccountScopeName = "scopeName" IntegrationMappingDirectoryAccountSecondaryKey = "secondaryKey" IntegrationMappingDirectoryAccountSourceVersion = "sourceVersion" IntegrationMappingDirectoryAccountStatus = "status" IntegrationMappingDirectoryAccountTags = "tags" )
Integration mapping keys for DirectoryAccount.
View Source
const ( IntegrationMappingVulnerabilityBlocking = "blocking" IntegrationMappingVulnerabilityCategory = "category" IntegrationMappingVulnerabilityCveID = "cveID" IntegrationMappingVulnerabilityDescription = "description" IntegrationMappingVulnerabilityDiscoveredAt = "discoveredAt" IntegrationMappingVulnerabilityDisplayName = "displayName" IntegrationMappingVulnerabilityEnvironmentID = "environmentID" IntegrationMappingVulnerabilityEnvironmentName = "environmentName" IntegrationMappingVulnerabilityExploitability = "exploitability" IntegrationMappingVulnerabilityExternalID = "externalID" IntegrationMappingVulnerabilityExternalOwnerID = "externalOwnerID" IntegrationMappingVulnerabilityExternalURI = "externalURI" IntegrationMappingVulnerabilityImpact = "impact" IntegrationMappingVulnerabilityImpacts = "impacts" IntegrationMappingVulnerabilityInternalNotes = "internalNotes" IntegrationMappingVulnerabilityMetadata = "metadata" IntegrationMappingVulnerabilityOpen = "open" IntegrationMappingVulnerabilityPriority = "priority" IntegrationMappingVulnerabilityProduction = "production" IntegrationMappingVulnerabilityPublic = "public" IntegrationMappingVulnerabilityPublishedAt = "publishedAt" IntegrationMappingVulnerabilityRawPayload = "rawPayload" IntegrationMappingVulnerabilityReferences = "references" IntegrationMappingVulnerabilityRemediationSLA = "remediationSLA" IntegrationMappingVulnerabilityScopeID = "scopeID" IntegrationMappingVulnerabilityScopeName = "scopeName" IntegrationMappingVulnerabilityScore = "score" IntegrationMappingVulnerabilitySeverity = "severity" IntegrationMappingVulnerabilitySource = "source" IntegrationMappingVulnerabilitySourceUpdatedAt = "sourceUpdatedAt" IntegrationMappingVulnerabilityStatus = "status" IntegrationMappingVulnerabilitySummary = "summary" IntegrationMappingVulnerabilitySystemInternalID = "systemInternalID" IntegrationMappingVulnerabilityTags = "tags" IntegrationMappingVulnerabilityValidated = "validated" IntegrationMappingVulnerabilityVector = "vector" )
Integration mapping keys for Vulnerability.
Variables ¶
View Source
var IntegrationMappingSchemas = map[string]IntegrationMappingSchema{ "DirectoryAccount": { Name: "DirectoryAccount", Fields: []IntegrationMappingField{ { InputKey: "accountType", EntField: "account_type", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "avatarRemoteURL", EntField: "avatar_remote_url", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "avatarUpdatedAt", EntField: "avatar_updated_at", Type: "time.Time", Required: false, UpsertKey: false, }, { InputKey: "canonicalEmail", EntField: "canonical_email", Type: "string", Required: false, UpsertKey: true, }, { InputKey: "department", EntField: "department", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "directoryName", EntField: "directory_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "directorySyncRunID", EntField: "directory_sync_run_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "displayName", EntField: "display_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "environmentID", EntField: "environment_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "environmentName", EntField: "environment_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "externalID", EntField: "external_id", Type: "string", Required: true, UpsertKey: true, }, { InputKey: "familyName", EntField: "family_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "givenName", EntField: "given_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "identityHolderID", EntField: "identity_holder_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "integrationID", EntField: "integration_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "jobTitle", EntField: "job_title", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "lastLoginAt", EntField: "last_login_at", Type: "time.Time", Required: false, UpsertKey: false, }, { InputKey: "lastSeenIP", EntField: "last_seen_ip", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "mfaState", EntField: "mfa_state", Type: "string", Required: true, UpsertKey: false, }, { InputKey: "observedAt", EntField: "observed_at", Type: "time.Time", Required: true, UpsertKey: false, }, { InputKey: "organizationUnit", EntField: "organization_unit", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "platformID", EntField: "platform_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "profile", EntField: "profile", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "profileHash", EntField: "profile_hash", Type: "string", Required: true, UpsertKey: false, }, { InputKey: "scopeID", EntField: "scope_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "scopeName", EntField: "scope_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "secondaryKey", EntField: "secondary_key", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "sourceVersion", EntField: "source_version", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "status", EntField: "status", Type: "string", Required: true, UpsertKey: false, }, { InputKey: "tags", EntField: "tags", Type: "json.RawMessage", Required: false, UpsertKey: false, }, }, AllowedKeys: map[string]struct{}{ "accountType": {}, "avatarRemoteURL": {}, "avatarUpdatedAt": {}, "canonicalEmail": {}, "department": {}, "directoryName": {}, "directorySyncRunID": {}, "displayName": {}, "environmentID": {}, "environmentName": {}, "externalID": {}, "familyName": {}, "givenName": {}, "identityHolderID": {}, "integrationID": {}, "jobTitle": {}, "lastLoginAt": {}, "lastSeenIP": {}, "mfaState": {}, "observedAt": {}, "organizationUnit": {}, "platformID": {}, "profile": {}, "profileHash": {}, "scopeID": {}, "scopeName": {}, "secondaryKey": {}, "sourceVersion": {}, "status": {}, "tags": {}, }, RequiredKeys: []string{ "externalID", "mfaState", "observedAt", "profileHash", "status", }, UpsertKeys: []string{ "canonicalEmail", "externalID", }, }, "Vulnerability": { Name: "Vulnerability", Fields: []IntegrationMappingField{ { InputKey: "blocking", EntField: "blocking", Type: "bool", Required: false, UpsertKey: false, }, { InputKey: "category", EntField: "category", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "cveID", EntField: "cve_id", Type: "string", Required: false, UpsertKey: true, }, { InputKey: "description", EntField: "description", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "discoveredAt", EntField: "discovered_at", Type: "time.Time", Required: false, UpsertKey: false, }, { InputKey: "displayName", EntField: "display_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "environmentID", EntField: "environment_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "environmentName", EntField: "environment_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "exploitability", EntField: "exploitability", Type: "float64", Required: false, UpsertKey: false, }, { InputKey: "externalID", EntField: "external_id", Type: "string", Required: true, UpsertKey: true, }, { InputKey: "externalOwnerID", EntField: "external_owner_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "externalURI", EntField: "external_uri", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "impact", EntField: "impact", Type: "float64", Required: false, UpsertKey: false, }, { InputKey: "impacts", EntField: "impacts", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "internalNotes", EntField: "internal_notes", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "metadata", EntField: "metadata", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "open", EntField: "open", Type: "bool", Required: false, UpsertKey: false, }, { InputKey: "priority", EntField: "priority", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "production", EntField: "production", Type: "bool", Required: false, UpsertKey: false, }, { InputKey: "public", EntField: "public", Type: "bool", Required: false, UpsertKey: false, }, { InputKey: "publishedAt", EntField: "published_at", Type: "time.Time", Required: false, UpsertKey: false, }, { InputKey: "rawPayload", EntField: "raw_payload", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "references", EntField: "references", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "remediationSLA", EntField: "remediation_sla", Type: "int", Required: false, UpsertKey: false, }, { InputKey: "scopeID", EntField: "scope_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "scopeName", EntField: "scope_name", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "score", EntField: "score", Type: "float64", Required: false, UpsertKey: false, }, { InputKey: "severity", EntField: "severity", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "source", EntField: "source", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "sourceUpdatedAt", EntField: "source_updated_at", Type: "time.Time", Required: false, UpsertKey: false, }, { InputKey: "status", EntField: "status", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "summary", EntField: "summary", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "systemInternalID", EntField: "system_internal_id", Type: "string", Required: false, UpsertKey: false, }, { InputKey: "tags", EntField: "tags", Type: "json.RawMessage", Required: false, UpsertKey: false, }, { InputKey: "validated", EntField: "validated", Type: "bool", Required: false, UpsertKey: false, }, { InputKey: "vector", EntField: "vector", Type: "string", Required: false, UpsertKey: false, }, }, AllowedKeys: map[string]struct{}{ "blocking": {}, "category": {}, "cveID": {}, "description": {}, "discoveredAt": {}, "displayName": {}, "environmentID": {}, "environmentName": {}, "exploitability": {}, "externalID": {}, "externalOwnerID": {}, "externalURI": {}, "impact": {}, "impacts": {}, "internalNotes": {}, "metadata": {}, "open": {}, "priority": {}, "production": {}, "public": {}, "publishedAt": {}, "rawPayload": {}, "references": {}, "remediationSLA": {}, "scopeID": {}, "scopeName": {}, "score": {}, "severity": {}, "source": {}, "sourceUpdatedAt": {}, "status": {}, "summary": {}, "systemInternalID": {}, "tags": {}, "validated": {}, "vector": {}, }, RequiredKeys: []string{ "externalID", }, UpsertKeys: []string{ "cveID", "externalID", }, }, }
IntegrationMappingSchemas maps schema names to their mapping metadata.
Functions ¶
This section is empty.
Types ¶
type IntegrationMappingField ¶
type IntegrationMappingField struct {
InputKey string
EntField string
Type string
Required bool
UpsertKey bool
}
IntegrationMappingField describes an integration mapping target field.
type IntegrationMappingSchema ¶
type IntegrationMappingSchema struct {
Name string
Fields []IntegrationMappingField
AllowedKeys map[string]struct{}
RequiredKeys []string
UpsertKeys []string
}
IntegrationMappingSchema describes a schema with integration mapping fields.
Click to show internal directories.
Click to hide internal directories.