Documentation ¶
Index ¶
- Constants
- func Provider() *schema.Provider
- func WithHeader(rt http.RoundTripper) withHeader
- type Destination
- type GetPolicyResponse
- type IndexPermissions
- type PolicyMapping
- type PolicyMappingResponse
- type ProviderConf
- type PutPolicyResponse
- type RoleBody
- type RoleMappingResponse
- type RoleResponse
- type RolesMapping
- type Script
- type ScriptBody
- type ServerFlavor
- type TenantBody
- type TenantPermissions
- type TenantResponse
- type UserBody
- type UserResponse
Constants ¶
View Source
const ( INDEX_CREATED int = iota INDEX_EXISTS INDEX_CREATION_FAILED )
View Source
const DESTINATION_INDEX = ".opendistro-alerting-config"
View Source
const DESTINATION_NAME_FIELD = "destination.name.keyword"
View Source
const DESTINATION_TYPE = "_doc"
Variables ¶
This section is empty.
Functions ¶
func WithHeader ¶
func WithHeader(rt http.RoundTripper) withHeader
Types ¶
type Destination ¶
type Destination struct { ID string `json:"id"` Type string `json:"type"` Name string `json:"name"` Slack interface{} `json:"slack,omitempty"` CustomWebhook interface{} `json:"custom_webhook,omitempty"` Chime interface{} `json:"chime,omitempty"` SNS interface{} `json:"sns,omitempty"` Email interface{} `json:"email,omitempty"` }
type GetPolicyResponse ¶
type IndexPermissions ¶
type PolicyMapping ¶
type PolicyMappingResponse ¶
type ProviderConf ¶
type ProviderConf struct {
// contains filtered or unexported fields
}
type PutPolicyResponse ¶
type RoleBody ¶
type RoleBody struct { Description string `json:"description"` ClusterPermissions []string `json:"cluster_permissions,omitempty"` IndexPermissions []IndexPermissions `json:"index_permissions,omitempty"` TenantPermissions []TenantPermissions `json:"tenant_permissions,omitempty"` }
type RoleMappingResponse ¶
type RoleResponse ¶
type RolesMapping ¶
type Script ¶
type Script struct { Name string `json:"name"` Script ScriptBody `json:"script"` }
type ScriptBody ¶
type ServerFlavor ¶
type ServerFlavor int64
const ( Unknown ServerFlavor = iota OpenSearch )
opensearch
type TenantBody ¶
type TenantBody struct {
Description string `json:"description"`
}
type TenantPermissions ¶
type TenantResponse ¶
type UserBody ¶
type UserBody struct { BackendRoles []interface{} `json:"backend_roles"` Attributes map[string]interface{} `json:"attributes"` Description string `json:"description"` Password string `json:"password,omitempty"` PasswordHash string `json:"hash,omitempty"` }
UserBody used by the odfe's API
type UserResponse ¶
UserResponse sent by the odfe's API
Source Files ¶
- data_source_opensearch_destination.go
- data_source_opensearch_host.go
- diff_suppress_funcs.go
- http.go
- provider.go
- resource_opensearch_audit_config.go
- resource_opensearch_cluster_settings.go
- resource_opensearch_component_template.go
- resource_opensearch_composable_index_template.go
- resource_opensearch_dashboard_object.go
- resource_opensearch_dashboard_tenant.go
- resource_opensearch_data_stream.go
- resource_opensearch_destination.go
- resource_opensearch_index.go
- resource_opensearch_index_template.go
- resource_opensearch_ingest_pipeline.go
- resource_opensearch_ism_policy.go
- resource_opensearch_ism_policy_mapping.go
- resource_opensearch_monitor.go
- resource_opensearch_role.go
- resource_opensearch_roles_mapping.go
- resource_opensearch_script.go
- resource_opensearch_snapshot_repository.go
- resource_opensearch_user.go
- util.go
Click to show internal directories.
Click to hide internal directories.