Documentation
¶
Index ¶
- Constants
- func Provider() terraform.ResourceProvider
- func WithHeader(rt http.RoundTripper) withHeader
- type Destination
- type GetPolicyResponse
- type IndexPermissions
- type License
- type PolicyMapping
- type PolicyMappingResponse
- type ProviderConf
- type PutPolicyResponse
- type PutRoleApplicationPrivileges
- type PutRoleBody
- type PutRoleIndicesPermissions
- type PutRoleMappingBody
- type RoleBody
- type RoleMappingResponse
- type RoleResponse
- type RolesMapping
- type TenantBody
- type TenantPermissions
- type TenantResponse
- type UserBody
- type UserResponse
- type XPackSecurityApplicationPrivileges
- type XPackSecurityIndicesPermissions
- type XPackSecurityRole
- type XPackSecurityRoleMapping
- type XPackSecurityUser
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 Provider ¶
func Provider() terraform.ResourceProvider
func WithHeader ¶ added in v1.5.5
func WithHeader(rt http.RoundTripper) withHeader
Types ¶
type Destination ¶ added in v1.5.6
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 ¶ added in v1.1.0
type IndexPermissions ¶ added in v1.1.0
type License ¶ added in v1.5.0
type License struct { Status string `json:"status,omitempty"` Uid string `json:"uid,omitempty"` Type string `json:"type,omitempty"` IssueDate string `json:"issue_date,omitempty"` IssueDateInMillis int `json:"issue_date_in_millis,omitempty"` ExpiryDate string `json:"expiry_date,omitempty"` ExpiryDateInMillis int `json:"expiry_date_in_millis,omitempty"` MaxNodes int `json:"max_nodes,omitempty"` IssuedTo string `json:"issued_to,omitempty"` Issuer string `json:"issuer,omitempty"` StartDateInMillis int `json:"start_date_in_millis,omitempty"` }
type PolicyMapping ¶ added in v1.1.0
type PolicyMappingResponse ¶ added in v1.1.0
type ProviderConf ¶ added in v1.5.1
type ProviderConf struct {
// contains filtered or unexported fields
}
type PutPolicyResponse ¶ added in v1.1.0
type PutRoleBody ¶
type PutRoleBody struct { Cluster []string `json:"cluster"` Applications []PutRoleApplicationPrivileges `json:"applications,omitempty"` Indices []PutRoleIndicesPermissions `json:"indices,omitempty"` RunAs []string `json:"run_as,omitempty"` Global interface{} `json:"global,omitempty"` Metadata interface{} `json:"metadata,omitempty"` }
type PutRoleMappingBody ¶
type RoleBody ¶ added in v1.1.0
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 ¶ added in v1.1.0
type RoleResponse ¶ added in v1.1.0
type RolesMapping ¶ added in v1.1.0
type TenantBody ¶ added in v1.5.3
type TenantBody struct {
Description string `json:"description"`
}
type TenantPermissions ¶ added in v1.1.0
type TenantResponse ¶ added in v1.5.3
type UserBody ¶ added in v1.4.4
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 ¶ added in v1.4.4
UserResponse sent by the odfe's API
type XPackSecurityApplicationPrivileges ¶
type XPackSecurityApplicationPrivileges struct { Application string `json:"application"` Privileges []string `json:"privileges"` Resources []string `json:"resources"` }
XPackSecurityApplicationPrivileges is the application privileges object of Elasticsearch
type XPackSecurityIndicesPermissions ¶
type XPackSecurityIndicesPermissions struct { Names []string `json:"names"` Privileges []string `json:"privileges"` FieldSecurity []map[string]interface{} `json:"field_security"` Query string `json:"query"` }
XPackSecurityIndicesPermissions is the indices permission object of Elasticsearch
type XPackSecurityRole ¶
type XPackSecurityRole struct { Name string `json:"name"` Cluster []string `json:"cluster"` Indices []XPackSecurityIndicesPermissions `json:"indices"` Applications []XPackSecurityApplicationPrivileges `json:"applications"` RunAs []string `json:"run_as"` Global string `json:"global"` Metadata string `json:"metadata"` }
type XPackSecurityUser ¶
type XPackSecurityUser struct { Username string `json:"username"` Roles []string `json:"roles"` Fullname string `json:"full_name,omitempty"` Email string `json:"email,omitempty"` Metadata interface{} `json:"metadata,omitempty"` Enabled bool `json:"enabled,omitempty"` Password string `json:"password,omitempty"` PasswordHash string `json:"password_hash,omitempty"` }
XPackSecurityUser is the user object.
we want to define a new struct as the one from elastic has metadata as a map[string]interface{} but we want to manage string only
Source Files
¶
- data_source_elasticsearch_host.go
- data_source_elasticsearch_opendistro_destination.go
- diff_suppress_funcs.go
- http.go
- provider.go
- resource_elasticsearch_component_template.go
- resource_elasticsearch_composable_index_template.go
- resource_elasticsearch_index.go
- resource_elasticsearch_index_template.go
- resource_elasticsearch_ingest_pipeline.go
- resource_elasticsearch_kibana_alert.go
- resource_elasticsearch_kibana_object.go
- resource_elasticsearch_opendistro_destination.go
- resource_elasticsearch_opendistro_ism_policy.go
- resource_elasticsearch_opendistro_ism_policy_mapping.go
- resource_elasticsearch_opendistro_kibana_tenant.go
- resource_elasticsearch_opendistro_monitor.go
- resource_elasticsearch_opendistro_role.go
- resource_elasticsearch_opendistro_roles_mapping.go
- resource_elasticsearch_opendistro_user.go
- resource_elasticsearch_snapshot_repository.go
- resource_elasticsearch_xpack_index_lifecycle_policy.go
- resource_elasticsearch_xpack_license.go
- resource_elasticsearch_xpack_role.go
- resource_elasticsearch_xpack_role_mapping.go
- resource_elasticsearch_xpack_snapshot_lifecycle_policy.go
- resource_elasticsearch_xpack_user.go
- resource_elasticsearch_xpack_watch.go
- util.go
Click to show internal directories.
Click to hide internal directories.