Documentation ¶
Overview ¶
Package es permiit to handle Elasticsearch API call to manage some resources from Terraform
Index ¶
- func Provider() *schema.Provider
- type License
- type LicenseSpec
- type Role
- type RoleApplicationPrivileges
- type RoleIndicesPermissions
- type RoleMapping
- type RoleMappingSpec
- type RoleSpec
- type SnapshotLifecyclePolicy
- type SnapshotLifecyclePolicyGet
- type SnapshotLifecyclePolicySpec
- type SnapshotRepository
- type SnapshotRepositorySpec
- type User
- type UserSpec
- type Watcher
- type WatcherSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LicenseSpec ¶
type LicenseSpec struct { UID string `json:"uid"` Type string `json:"type"` IssueDateInMillis float64 `json:"issue_date_in_millis"` ExpiryDateInMillis float64 `json:"expiry_date_in_millis"` MaxNodes float64 `json:"max_nodes"` IssuedTo string `json:"issued_to"` Issuer string `json:"issuer"` Signature string `json:"signature,omitempty"` StartDateInMillis float64 `json:"start_date_in_millis"` }
LicenseSpec is license object
func (*LicenseSpec) String ¶
func (r *LicenseSpec) String() string
Print License object as Json string
type RoleApplicationPrivileges ¶
type RoleApplicationPrivileges struct { Application string `json:"application"` Privileges []string `json:"privileges,omitempty"` Resources []string `json:"resources,omitempty"` }
RoleApplicationPrivileges is the application object
type RoleIndicesPermissions ¶
type RoleIndicesPermissions struct { Names []string `json:"names"` Privileges []string `json:"privileges"` FieldSecurity interface{} `json:"field_security,omitempty"` Query interface{} `json:"query,omitempty"` }
RoleIndicesPermissions is the indice object
type RoleMapping ¶
type RoleMapping map[string]*RoleMappingSpec
RoleMapping is role mapping object returned by API
type RoleMappingSpec ¶
type RoleMappingSpec struct { Roles []string `json:"roles"` Enabled bool `json:"enabled"` Rules interface{} `json:"rules,omitempty"` Metadata interface{} `json:"metadata,omitempty"` }
RoleMappingSpec is role mapping object
func (*RoleMappingSpec) String ¶
func (r *RoleMappingSpec) String() string
Print role mapping as Json string
type RoleSpec ¶
type RoleSpec struct { Cluster []string `json:"cluster"` Applications []RoleApplicationPrivileges `json:"applications,omitempty"` Indices []RoleIndicesPermissions `json:"indices,omitempty"` RunAs []string `json:"run_as,omitempty"` Global interface{} `json:"global,omitempty"` Metadata interface{} `json:"metadata,omitempty"` }
RoleSpec is role object
type SnapshotLifecyclePolicy ¶
type SnapshotLifecyclePolicy map[string]*SnapshotLifecyclePolicyGet
SnapshotLifecyclePolicy object returned by API
type SnapshotLifecyclePolicyGet ¶
type SnapshotLifecyclePolicyGet struct {
Policy *SnapshotLifecyclePolicySpec `json:"policy"`
}
SnapshotLifecyclePolicyGet is the policy
type SnapshotLifecyclePolicySpec ¶
type SnapshotLifecyclePolicySpec struct { Schedule string `json:"schedule"` Name string `json:"name"` Repository string `json:"repository"` Configs interface{} `json:"config,omitempty"` Retention interface{} `json:"retention,omitempty"` }
SnapshotLifecyclePolicySpec is the snapshot lifecycle policy object
func (*SnapshotLifecyclePolicySpec) String ¶
func (r *SnapshotLifecyclePolicySpec) String() string
Print snapshot lifecycle policy object as Json string
type SnapshotRepository ¶
type SnapshotRepository map[string]*SnapshotRepositorySpec
SnapshotRepository object returned by API
type SnapshotRepositorySpec ¶
type SnapshotRepositorySpec struct { Type string `json:"type"` Settings map[string]string `json:"settings"` }
SnapshotRepositorySpec is the repository object
func (*SnapshotRepositorySpec) String ¶
func (r *SnapshotRepositorySpec) String() string
Print snapshot repository object as Json string
type UserSpec ¶
type UserSpec struct { Enabled bool `json:"enabled"` Email string `json:"email"` FullName string `json:"full_name"` Password string `json:"password,omitempty"` PasswordHash string `json:"password_hash,omitempty"` Roles []string `json:"roles"` Metadata interface{} `json:"metadata,omitempty"` }
UserSpec is the user object
type Watcher ¶
type Watcher struct {
Watcher *WatcherSpec `json:"watch"`
}
Watcher object returned by API
type WatcherSpec ¶
type WatcherSpec struct { Trigger interface{} `json:"trigger,omitempty"` Input interface{} `json:"input,omitempty"` Condition interface{} `json:"condition,omitempty"` Actions interface{} `json:"actions,omitempty"` Metadata interface{} `json:"metadata,omitempty"` ThrottlePeriod string `json:"throttle_period,omitempty"` }
WatcherSpec is the watcher object
func (*WatcherSpec) String ¶
func (r *WatcherSpec) String() string
Print Watcher object as Json string
Source Files ¶
- diff_suppress_funcs.go
- doc.go
- provider.go
- resource_elasticsearch_index_component_template.go
- resource_elasticsearch_index_lifecycle_policy.go
- resource_elasticsearch_index_template.go
- resource_elasticsearch_index_template_legacy.go
- resource_elasticsearch_license.go
- resource_elasticsearch_security_role.go
- resource_elasticsearch_security_role_mapping.go
- resource_elasticsearch_security_user.go
- resource_elasticsearch_snapshot_lifecycle_policy.go
- resource_elasticsearch_snapshot_repository.go
- resource_elasticsearch_watcher.go
- util.go