Documentation ¶
Index ¶
- Constants
- func AlertLinkV2TypeValues() []string
- func AlertV2SeverityValues() []string
- func BoolComputedSchema() *schema.Schema
- func BoolSchema() *schema.Schema
- func CaptureActionComputedSchema() *schema.Schema
- func CaptureActionSchema() *schema.Schema
- func ContainerActionComputedSchema() *schema.Schema
- func ContainerActionSchema() *schema.Schema
- func ContainerKillProcessActionSchema() *schema.Schema
- func DescriptionComputedSchema() *schema.Schema
- func DescriptionSchema() *schema.Schema
- func EnabledComputedSchema() *schema.Schema
- func EnabledSchema() *schema.Schema
- func ExceptionsComputedSchema() *schema.Schema
- func ExceptionsSchema() *schema.Schema
- func GetValueFromTemplate(what *gabs.Container) (string, *gabs.Container)
- func HashesComputedSchema() *schema.Schema
- func HashesSchema() *schema.Schema
- func MLRuleThresholdAndSeverityComputedSchema() *schema.Schema
- func MLRuleThresholdAndSeveritySchema() *schema.Schema
- func NameSchema() *schema.Schema
- func NotificationChannelsComputedSchema() *schema.Schema
- func NotificationChannelsSchema() *schema.Schema
- func PreventActionComputedSchema() *schema.Schema
- func PreventActionSchema() *schema.Schema
- func Provider() *schema.Provider
- func ReadOnlyIntSchema() *schema.Schema
- func ReadOnlyStringSchema() *schema.Schema
- func Reduce[T Target, S Source](target T, source S, reducers ...func(T, S) error) error
- func Reducer[T Target, S Source](reducers ...func(T, S) error) func(T, S) error
- func RuleNamesSchema() *schema.Schema
- func RulesSchema() *schema.Schema
- func RunbookComputedSchema() *schema.Schema
- func RunbookSchema() *schema.Schema
- func ScopeComputedSchema() *schema.Schema
- func ScopeSchema() *schema.Schema
- func SeverityComputedSchema() *schema.Schema
- func SeveritySchema() *schema.Schema
- func TagsSchema() *schema.Schema
- func VersionSchema() *schema.Schema
- type ClientType
- type KiltRecipeConfig
- type Source
- type SysdigClients
- type SysdigProvider
- type Target
Constants ¶
View Source
const ( SchemaIDKey = "id" SchemaTeamIDKey = "team_id" SchemaPoliciesKey = "policies" SchemaPolicyIDsKey = "policy_ids" SchemaAuthorsKey = "authors" SchemaAuthorKey = "author" SchemaNameKey = "name" SchemaAcceptanceIDKey = "acceptance_id" SchemaControlNameKey = "control_name" SchemaZoneNameKey = "zone_name" SchemaEnabledKey = "enabled" SchemaStatusKey = "status" SchemaTypeKey = "type" SchemaResourceKindKey = "resource_kind" SchemaResourceRegoKey = "rego" SchemaResourceSeverityKey = "severity" SchemaResourceRemediationDetailsKey = "remediation_details" SchemaKindKey = "kind" SchemaDescriptionKey = "description" SchemaFilterKey = "filter" SchemaExpiresInKey = "expires_in" SchemaExpiresAtKey = "expires_at" SchemaAcceptanceDateKey = "acceptance_date" SchemaIsExpiredKey = "is_expired" SchemaIsSystemKey = "is_system" SchemaUsernameKey = "username" SchemaAcceptPeriodKey = "accept_period" SchemaEndTimeKey = "end_time" SchemaReasonKey = "reason" SchemaVersionKey = "version" SchemaLinkKey = "link" SchemaGroupKey = "group" SchemaLastModifiedBy = "last_modified_by" SchemaLastUpdated = "last_updated" SchemaExpirationDateKey = "expiration_date" SchemaPublishedDateKey = "published_date" SchemaCreatedDateKey = "date_created" SchemaMinKubeVersionKey = "min_kube_version" SchemaMaxKubeVersionKey = "max_kube_version" SchemaMinVersionKey = "min_version" SchemaMaxVersionKey = "max_version" SchemaIsCustomKey = "is_custom" SchemaIsActiveKey = "is_active" SchemaPlatformKey = "platform" SchemaTargetKey = "target" SchemaZonesKey = "zones" SchemaZonesIDsKey = "zone_ids" SchemaAllZones = "all_zones" SchemaScopeKey = "scope" SchemaScopesKey = "scopes" SchemaTargetTypeKey = "target_type" SchemaRoleKey = "role" SchemaSystemRoleKey = "system_role" SchemaRulesKey = "rules" SchemaApiKeyKey = "api_key" SchemaPermissionsKey = "permissions" SchemaMonitorPermKey = "monitor_permissions" SchemaSecurePermKey = "secure_permissions" SchemaRequestedPermKey = "requested_permissions" SchemaEnrichedPermKey = "enriched_permissions" SchemaSecureThreatDetection = "secure_threat_detection" SchemaSecureConfigPosture = "secure_config_posture" SchemaSecureIdentityEntitlement = "secure_identity_entitlement" SchemaSecureAgentlessScanning = "secure_agentless_scanning" SchemaMonitorCloudMetrics = "monitor_cloud_metrics" SchemaType = "type" SchemaInstance = "instance" SchemaVersion = "version" SchemaCloudConnectorMetadata = "cloud_connector_metadata" SchemaTrustedRoleMetadata = "trusted_role_metadata" SchemaEventBridgeMetadata = "event_bridge_metadata" SchemaServicePrincipalMetadata = "service_principal_metadata" SchemaWebhookDatasourceMetadata = "webhook_datasource_metadata" SchemaCryptoKeyMetadata = "crypto_key_metadata" SchemaCloudLogsMetadata = "cloud_logs_metadata" SchemaEnabled = "enabled" SchemaComponents = "components" SchemaComponent = "component" SchemaCloudProviderId = "provider_id" SchemaCloudProviderType = "provider_type" SchemaFeature = "feature" SchemaManagementAccountId = "management_account_id" SchemaOrganizationIDKey = "organization_id" SchemaOrganizationalUnitIds = "organizational_unit_ids" SchemaCloudProviderTenantId = "provider_tenant_id" SchemaCloudProviderAlias = "provider_alias" SchemaAccountId = "account_id" SchemaFeatureFlags = "flags" SchemaProviderPartition = "provider_partition" )
View Source
const ( NOTIFICATION_CHANNEL_TYPE_EMAIL = "EMAIL" NOTIFICATION_CHANNEL_TYPE_AMAZON_SNS = "SNS" NOTIFICATION_CHANNEL_TYPE_OPSGENIE = "OPSGENIE" NOTIFICATION_CHANNEL_TYPE_VICTOROPS = "VICTOROPS" NOTIFICATION_CHANNEL_TYPE_WEBHOOK = "WEBHOOK" NOTIFICATION_CHANNEL_TYPE_SLACK = "SLACK" NOTIFICATION_CHANNEL_TYPE_PAGERDUTY = "PAGER_DUTY" NOTIFICATION_CHANNEL_TYPE_MS_TEAMS = "MS_TEAMS" NOTIFICATION_CHANNEL_TYPE_GCHAT = "GCHAT" NOTIFICATION_CHANNEL_TYPE_PROMETHEUS_ALERT_MANAGER = "PROMETHEUS_ALERT_MANAGER" NOTIFICATION_CHANNEL_TYPE_TEAM_EMAIL = "TEAM_EMAIL" NOTIFICATION_CHANNEL_TYPE_CUSTOM_WEBHOOK = "POWER_WEBHOOK" NOTIFICATION_CHANNEL_TYPE_IBM_EVENT_NOTIFICATION = "IBM_EVENT_NOTIFICATIONS" NOTIFICATION_CHANNEL_TYPE_IBM_FUNCTION = "IBM_FUNCTION" NOTIFICATION_CHANNEL_TYPE_SLACK_TEMPLATE_KEY_V1 = "SLACK_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v1" NOTIFICATION_CHANNEL_TYPE_SLACK_TEMPLATE_KEY_V2 = "SLACK_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v2" NOTIFICATION_CHANNEL_TYPE_MS_TEAMS_TEMPLATE_KEY_V1 = "MS_TEAMS_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v1" NOTIFICATION_CHANNEL_TYPE_MS_TEAMS_TEMPLATE_KEY_V2 = "MS_TEAMS_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v2" NOTIFICATION_CHANNEL_SECURE_EVENT_NOTIFICATION_CONTENT_SECTION = "SECURE_EVENT_NOTIFICATION_CONTENT" )
View Source
const AlertV2CaptureFilenameRegexp = `.*?\.scap`
Variables ¶
This section is empty.
Functions ¶
func AlertLinkV2TypeValues ¶ added in v1.6.0
func AlertLinkV2TypeValues() []string
func AlertV2SeverityValues ¶ added in v1.6.0
func AlertV2SeverityValues() []string
func BoolComputedSchema ¶ added in v1.23.0
func BoolSchema ¶ added in v1.23.0
func CaptureActionComputedSchema ¶ added in v1.23.0
func CaptureActionSchema ¶ added in v1.23.0
func ContainerActionComputedSchema ¶ added in v1.23.0
func ContainerActionSchema ¶ added in v1.23.0
func ContainerKillProcessActionSchema ¶ added in v1.29.0
func DescriptionComputedSchema ¶ added in v1.23.0
func DescriptionSchema ¶ added in v1.23.0
func EnabledComputedSchema ¶ added in v1.23.0
func EnabledSchema ¶ added in v1.23.0
func ExceptionsComputedSchema ¶ added in v1.23.0
func ExceptionsSchema ¶ added in v1.23.0
func GetValueFromTemplate ¶ added in v0.5.38
func GetValueFromTemplate(what *gabs.Container) (string, *gabs.Container)
GetValueFromTemplate can be used to obtain string value from JSON object
func HashesComputedSchema ¶ added in v1.23.0
func HashesSchema ¶ added in v1.23.0
func MLRuleThresholdAndSeverityComputedSchema ¶ added in v1.23.0
func MLRuleThresholdAndSeveritySchema ¶ added in v1.23.0
func NameSchema ¶ added in v1.23.0
func NotificationChannelsComputedSchema ¶ added in v1.23.0
func NotificationChannelsSchema ¶ added in v1.23.0
func PreventActionComputedSchema ¶ added in v1.23.0
func PreventActionSchema ¶ added in v1.23.0
func ReadOnlyIntSchema ¶ added in v1.23.0
func ReadOnlyStringSchema ¶ added in v1.23.0
func RuleNamesSchema ¶ added in v1.23.0
Can be omitted for composite policies
func RulesSchema ¶ added in v1.23.0
Can be omitted for Composite policies
func RunbookComputedSchema ¶ added in v1.23.0
func RunbookSchema ¶ added in v1.23.0
func ScopeComputedSchema ¶ added in v1.23.0
func ScopeSchema ¶ added in v1.23.0
func SeverityComputedSchema ¶ added in v1.23.0
func SeveritySchema ¶ added in v1.23.0
func TagsSchema ¶ added in v1.23.0
Tags are always set automatically by Sysdig
func VersionSchema ¶ added in v1.23.0
Types ¶
type ClientType ¶ added in v1.1.0
type ClientType int
const ( SysdigMonitor ClientType = iota SysdigSecure IBMMonitor IBMSecure )
func (ClientType) String ¶ added in v1.4.0
func (i ClientType) String() string
type KiltRecipeConfig ¶ added in v0.5.22
type KiltRecipeConfig struct { SysdigAccessKey string `json:"sysdig_access_key"` AgentImage string `json:"agent_image"` OrchestratorHost string `json:"orchestrator_host"` OrchestratorPort string `json:"orchestrator_port"` CollectorHost string `json:"collector_host"` CollectorPort string `json:"collector_port"` SysdigLogging string `json:"sysdig_logging"` Sidecar string `json:"sidecar"` Priority string `json:"priority"` }
type Source ¶ added in v1.23.0
type Source interface { *schema.ResourceData | v2.PolicyRulesComposite }
type SysdigClients ¶
type SysdigClients interface { io.Closer GetClientType() ClientType GetSecureEndpoint() (string, error) GetSecureApiToken() (string, error) Configure(context.Context, *schema.ResourceData) AddCleanupHook(func(context.Context, SysdigClients) error) // contains filtered or unexported methods }
func NewSysdigClients ¶ added in v1.14.0
func NewSysdigClients() SysdigClients
type SysdigProvider ¶ added in v1.14.0
type SysdigProvider struct {
SysdigClient SysdigClients
}
func (*SysdigProvider) Provider ¶ added in v1.14.0
func (p *SysdigProvider) Provider() *schema.Provider
type Target ¶ added in v1.23.0
type Target interface { *schema.ResourceData | *v2.PolicyRulesComposite }
Source Files ¶
- cfn_preprocess_template.go
- clienttype_string.go
- common.go
- data_source_agent_access_keys.go
- data_source_sysdig_current_user.go
- data_source_sysdig_custom_role.go
- data_source_sysdig_custom_role_permissions_common.go
- data_source_sysdig_fargate_workload_agent.go
- data_source_sysdig_monitor_custom_role_permissions.go
- data_source_sysdig_monitor_notification_channel_custom_webhook.go
- data_source_sysdig_monitor_notification_channel_email.go
- data_source_sysdig_monitor_notification_channel_google_chat.go
- data_source_sysdig_monitor_notification_channel_ibm_event_notification.go
- data_source_sysdig_monitor_notification_channel_ibm_function.go
- data_source_sysdig_monitor_notification_channel_msteams.go
- data_source_sysdig_monitor_notification_channel_opsgenie.go
- data_source_sysdig_monitor_notification_channel_pagerduty.go
- data_source_sysdig_monitor_notification_channel_prometheus_alert_manager.go
- data_source_sysdig_monitor_notification_channel_slack.go
- data_source_sysdig_monitor_notification_channel_sns.go
- data_source_sysdig_monitor_notification_channel_team_email.go
- data_source_sysdig_monitor_notification_channel_victorops.go
- data_source_sysdig_monitor_notification_channel_webhook.go
- data_source_sysdig_secure_aws_ml_policy.go
- data_source_sysdig_secure_current_connection.go
- data_source_sysdig_secure_custom_policy.go
- data_source_sysdig_secure_custom_role_permissions.go
- data_source_sysdig_secure_drift_policy.go
- data_source_sysdig_secure_malware_policy.go
- data_source_sysdig_secure_managed_policy.go
- data_source_sysdig_secure_managed_ruleset.go
- data_source_sysdig_secure_ml_policy.go
- data_source_sysdig_secure_notification_channel.go
- data_source_sysdig_secure_notification_channel_email.go
- data_source_sysdig_secure_notification_channel_msteams.go
- data_source_sysdig_secure_notification_channel_opsgenie.go
- data_source_sysdig_secure_notification_channel_pagerduty.go
- data_source_sysdig_secure_notification_channel_prometheus_alert_manager.go
- data_source_sysdig_secure_notification_channel_slack.go
- data_source_sysdig_secure_notification_channel_sns.go
- data_source_sysdig_secure_notification_channel_team_email.go
- data_source_sysdig_secure_notification_channel_victorops.go
- data_source_sysdig_secure_notification_channel_webhook.go
- data_source_sysdig_secure_onboarding.go
- data_source_sysdig_secure_policy.go
- data_source_sysdig_secure_posture_policies.go
- data_source_sysdig_secure_posture_policy.go
- data_source_sysdig_secure_rule.go
- data_source_sysdig_secure_rule_container.go
- data_source_sysdig_secure_rule_falco.go
- data_source_sysdig_secure_rule_falco_count.go
- data_source_sysdig_secure_rule_filesystem.go
- data_source_sysdig_secure_rule_network.go
- data_source_sysdig_secure_rule_process.go
- data_source_sysdig_secure_rule_syscall.go
- data_source_sysdig_user.go
- helpers.go
- provider.go
- resource_sysdig_agent_access_key.go
- resource_sysdig_custom_role.go
- resource_sysdig_group_mapping.go
- resource_sysdig_group_mapping_config.go
- resource_sysdig_ip_filter.go
- resource_sysdig_ip_filtering_settings.go
- resource_sysdig_monitor_alert_anomaly.go
- resource_sysdig_monitor_alert_common.go
- resource_sysdig_monitor_alert_downtime.go
- resource_sysdig_monitor_alert_event.go
- resource_sysdig_monitor_alert_group_outlier.go
- resource_sysdig_monitor_alert_metric.go
- resource_sysdig_monitor_alert_promql.go
- resource_sysdig_monitor_alert_v2_change.go
- resource_sysdig_monitor_alert_v2_common.go
- resource_sysdig_monitor_alert_v2_downtime.go
- resource_sysdig_monitor_alert_v2_event.go
- resource_sysdig_monitor_alert_v2_form_based_prometheus.go
- resource_sysdig_monitor_alert_v2_group_outlier.go
- resource_sysdig_monitor_alert_v2_metric.go
- resource_sysdig_monitor_alert_v2_prometheus.go
- resource_sysdig_monitor_cloud_account.go
- resource_sysdig_monitor_dashboard.go
- resource_sysdig_monitor_inhibition_rule.go
- resource_sysdig_monitor_notification_channel_common.go
- resource_sysdig_monitor_notification_channel_custom_webhook.go
- resource_sysdig_monitor_notification_channel_email.go
- resource_sysdig_monitor_notification_channel_google_chat.go
- resource_sysdig_monitor_notification_channel_ibm_cloud_function.go
- resource_sysdig_monitor_notification_channel_ibm_event_notification.go
- resource_sysdig_monitor_notification_channel_msteams.go
- resource_sysdig_monitor_notification_channel_opsgenie.go
- resource_sysdig_monitor_notification_channel_pagerduty.go
- resource_sysdig_monitor_notification_channel_prometheus_alert_manager.go
- resource_sysdig_monitor_notification_channel_slack.go
- resource_sysdig_monitor_notification_channel_sns.go
- resource_sysdig_monitor_notification_channel_team_email.go
- resource_sysdig_monitor_notification_channel_victorops.go
- resource_sysdig_monitor_notification_channel_webhook.go
- resource_sysdig_monitor_silence_rule.go
- resource_sysdig_monitor_team.go
- resource_sysdig_secure_accept_posture_risk.go
- resource_sysdig_secure_aws_ml_policy.go
- resource_sysdig_secure_cloud_account.go
- resource_sysdig_secure_cloud_auth_account.go
- resource_sysdig_secure_cloud_auth_account_component.go
- resource_sysdig_secure_cloud_auth_account_feature.go
- resource_sysdig_secure_custom_policy.go
- resource_sysdig_secure_drift_policy.go
- resource_sysdig_secure_list.go
- resource_sysdig_secure_macro.go
- resource_sysdig_secure_malware_policy.go
- resource_sysdig_secure_managed_policy.go
- resource_sysdig_secure_managed_ruleset.go
- resource_sysdig_secure_ml_policy.go
- resource_sysdig_secure_notification_channel_common.go
- resource_sysdig_secure_notification_channel_email.go
- resource_sysdig_secure_notification_channel_msteams.go
- resource_sysdig_secure_notification_channel_opsgenie.go
- resource_sysdig_secure_notification_channel_pagerduty.go
- resource_sysdig_secure_notification_channel_prometheus_alert_manager.go
- resource_sysdig_secure_notification_channel_slack.go
- resource_sysdig_secure_notification_channel_sns.go
- resource_sysdig_secure_notification_channel_team_email.go
- resource_sysdig_secure_notification_channel_victorops.go
- resource_sysdig_secure_notification_channel_webhook.go
- resource_sysdig_secure_organization.go
- resource_sysdig_secure_policy.go
- resource_sysdig_secure_posture_control.go
- resource_sysdig_secure_posture_policy.go
- resource_sysdig_secure_posture_zone.go
- resource_sysdig_secure_rule.go
- resource_sysdig_secure_rule_container.go
- resource_sysdig_secure_rule_falco.go
- resource_sysdig_secure_rule_filesystem.go
- resource_sysdig_secure_rule_network.go
- resource_sysdig_secure_rule_process.go
- resource_sysdig_secure_rule_syscall.go
- resource_sysdig_secure_scanningpolicies.go
- resource_sysdig_secure_scanningpoliciesassignments.go
- resource_sysdig_secure_team.go
- resource_sysdig_secure_vulnerability_exception.go
- resource_sysdig_secure_vulnerability_exception_list.go
- resource_sysdig_team_common.go
- resource_sysdig_team_service_account.go
- resource_sysdig_user.go
- schema.go
- sysdig_clients.go
- tfresource.go
Click to show internal directories.
Click to hide internal directories.