Documentation
¶
Index ¶
- type Action
- type Application
- type FieldSecurity
- type Index
- type IndexAlias
- type IndexPerms
- type IndexTemplate
- type IndexTemplateResponse
- type IndexTemplatesResponse
- type Phase
- type Policy
- type PolicyDefinition
- type Role
- type SnapshortRetention
- type SnapshotPolicy
- type SnapshotPolicyConfig
- type SnapshotRepository
- type Template
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type FieldSecurity ¶
type Index ¶ added in v0.2.0
type Index struct { Name string `json:"-"` Aliases map[string]IndexAlias `json:"aliases,omitempty"` Mappings map[string]interface{} `json:"mappings,omitempty"` Settings map[string]interface{} `json:"settings,omitempty"` }
type IndexAlias ¶ added in v0.2.0
type IndexAlias struct { Name string `json:"-"` Filter map[string]interface{} `json:"filter,omitempty"` IndexRouting string `json:"index_routing,omitempty"` IsHidden bool `json:"is_hidden,omitempty"` IsWriteIndex bool `json:"is_wtite_index,omitempty"` Routing string `json:"routing,omitempty"` SearchRouting string `json:"search_routing,omitempty"` }
type IndexPerms ¶
type IndexPerms struct { FieldSecurity *FieldSecurity `json:"field_security,omitempty"` Names []string `json:"names"` Privileges []string `json:"privileges"` Query *string `json:"query,omitempty"` }
type IndexTemplate ¶
type IndexTemplate struct { Name string `json:"-"` Create bool `json:"-"` Timeout string `json:"-"` ComposedOf []string `json:"composed_of"` DataStream map[string]interface{} `json:"data_stream,omitempty"` IndexPatterns []string `json:"index_patterns"` Meta map[string]interface{} `json:"_meta,omitempty"` Priority *int `json:"priority,omitempty"` Template *Template `json:"template,omitempty"` Version *int `json:"version,omitempty"` }
type IndexTemplateResponse ¶
type IndexTemplateResponse struct { Name string `json:"name"` IndexTemplate IndexTemplate `json:"index_template"` }
type IndexTemplatesResponse ¶
type IndexTemplatesResponse struct {
IndexTemplates []IndexTemplateResponse `json:"index_templates"`
}
type PolicyDefinition ¶
type Role ¶
type Role struct { Name string `json:"-"` Applications []Application `json:"applications,omitempty"` Global map[string]interface{} `json:"global,omitempty"` Cluster []string `json:"cluster,omitempty"` Indices []IndexPerms `json:"indices,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` RusAs []string `json:"run_as,omitempty"` }
type SnapshortRetention ¶
type SnapshotPolicy ¶
type SnapshotPolicy struct { Id string `json:"-"` Config *SnapshotPolicyConfig `json:"config,omitempty"` Name string `json:"name"` Repository string `json:"repository"` Retention *SnapshortRetention `json:"retention,omitempty"` Schedule string `json:"schedule"` }
type SnapshotPolicyConfig ¶
type SnapshotPolicyConfig struct { ExpandWildcards *string `json:"expand_wildcards,omitempty"` IncludeGlobalState *bool `json:"include_global_state,omitempty"` Indices []string `json:"indices,omitempty"` FeatureStates []string `json:"feature_states,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` Partial *bool `json:"partial,omitempty"` }
type SnapshotRepository ¶
type Template ¶
type Template struct { Aliases map[string]IndexAlias `json:"aliases,omitempty"` Mappings map[string]interface{} `json:"mappings,omitempty"` Settings map[string]interface{} `json:"settings,omitempty"` }
type User ¶
type User struct { Username string `json:"-"` FullName string `json:"full_name"` Email string `json:"email"` Roles []string `json:"roles"` Password *string `json:"password,omitempty"` PasswordHash *string `json:"password_hash,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` Enabled bool `json:"enabled"` }
Click to show internal directories.
Click to hide internal directories.