Documentation ¶
Index ¶
- type ActionOperation
- type ActionSpec
- type AliasActionSpec
- type AliasAtomicAction
- type AliasGenericAction
- type AllocationOperation
- type ChimeSpec
- type CloseOperation
- type ConditionSpec
- type CronObject
- type CronSpec
- type CustomWebhookSpec
- type DeleteOperation
- type DestinationSpec
- type DestinationType
- type DynamicTemplateSpec
- type FieldsSpec
- type ForceMergeOperation
- type GetIndexTemplateObject
- type GetIndexTemplateResponse
- type ISMGetResponse
- type ISMPolicyIDSpec
- type ISMPolicySpec
- type ISMTemplateSpec
- type IndexPermissionSpec
- type IndexPriorityOperation
- type IndexTemplateSpec
- type IngestPipeline
- type KibanaDocResponse
- type KibanaVersionDoc
- type NotificationSpec
- type OldISMGetResponse
- type OldISMPolicySpec
- type OpenOperation
- type OpniProcessorConfig
- type Processor
- type PropertySettings
- type ReadOnlyOperation
- type ReadWriteOperation
- type ReindexDestSpec
- type ReindexSourceSpec
- type ReindexSpec
- type ReplicaCountOperation
- type RetrySpec
- type RoleMappingReponse
- type RoleMappingSpec
- type RoleSpec
- type RolloverOperation
- type SlackSpec
- type SnapshotOperation
- type StateSpec
- type TemplateMappingsSpec
- type TemplateSettingsSpec
- type TemplateSpec
- type TenantPermissionsSpec
- type TransitionSpec
- type UpdateAliasRequest
- type UpsertKibanaDoc
- type UserSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionOperation ¶
type ActionOperation struct { ForceMerge *ForceMergeOperation `json:"force_merge,omitempty"` ReadOnly *ReadOnlyOperation `json:"read_only,omitempty"` ReadWrite *ReadWriteOperation `json:"read_write,omitempty"` ReplicaCount *ReplicaCountOperation `json:"replica_count,omitempty"` Close *CloseOperation `json:"close,omitempty"` Open *OpenOperation `json:"open,omitempty"` Delete *DeleteOperation `json:"delete,omitempty"` Rollover *RolloverOperation `json:"rollover,omitempty"` Notification *NotificationSpec `json:"notification,omitempty"` Snapshot *SnapshotOperation `json:"snapshot,omitempty"` IndexPriority *IndexPriorityOperation `json:"index_priority,omitempty"` Allocation *AllocationOperation `json:"allocation,omitempty"` }
type ActionSpec ¶
type ActionSpec struct { Timeout string `json:"timeout,omitempty"` Retry *RetrySpec `json:"retry,omitempty"` *ActionOperation `json:",inline,omitempty"` }
type AliasActionSpec ¶
type AliasActionSpec struct {
*AliasAtomicAction `json:",inline,omitempty"`
}
type AliasAtomicAction ¶
type AliasAtomicAction struct { Add *AliasGenericAction `json:"add,omitempty"` Remove *AliasGenericAction `json:"remove,omitempty"` RemoveIndex *AliasGenericAction `json:"remove_index,omitempty"` }
type AliasGenericAction ¶
type AliasGenericAction struct { Alias string `json:"alias,omitempty"` Aliases []string `json:"aliases,omitempty"` Filter map[string]interface{} `json:"filter,omitempty"` Index string `json:"index,omitempty"` Indices []string `json:"indices,omitempty"` IndexRouting string `json:"index_routing,omitempty"` IsHidden *bool `json:"is_hidden,omitempty"` IsWriteIndex *bool `json:"is_write_index,omitempty"` MustExist *bool `json:"must_exist,omitempty"` Routing string `json:"routing,omitempty"` SearchRouting string `json:"search_routing,omitempty"` }
type AllocationOperation ¶
type CloseOperation ¶
type CloseOperation struct { }
type ConditionSpec ¶
type CronObject ¶
type CronSpec ¶
type CronSpec struct {
Cron CronObject `json:"cron"`
}
type CustomWebhookSpec ¶
type CustomWebhookSpec struct {
URL string `json:"url"`
}
type DeleteOperation ¶
type DeleteOperation struct { }
type DestinationSpec ¶
type DestinationSpec struct {
DestinationType `json:",inline"`
}
type DestinationType ¶
type DestinationType struct { Chime *ChimeSpec `json:"chime,omitempty"` Slack *SlackSpec `json:"slack,omitempty"` CustomWebhook *CustomWebhookSpec `json:"custom_webhook,omitempty"` }
type DynamicTemplateSpec ¶ added in v0.6.0
type DynamicTemplateSpec struct { MatchMappingType string `json:"match_mapping_type,omitempty"` Match string `json:"match,omitempty"` UnMatch string `json:"unmatch,omitempty"` PathMatch string `json:"path_match,omitempty"` PathUnMatch string `json:"path_unmatch,omitempty"` Mapping PropertySettings `json:"mapping,omitempty"` }
type FieldsSpec ¶ added in v0.6.0
type ForceMergeOperation ¶
type ForceMergeOperation struct {
MaxNumSegments int `json:"max_num_segments"`
}
type GetIndexTemplateObject ¶ added in v0.5.1
type GetIndexTemplateObject struct { Name string `json:"name,omitempty"` Template IndexTemplateSpec `json:"index_template,omitempty"` }
type GetIndexTemplateResponse ¶ added in v0.5.1
type GetIndexTemplateResponse struct {
IndexTemplates []GetIndexTemplateObject `json:"index_templates,omitempty"`
}
type ISMGetResponse ¶
type ISMGetResponse struct { ID string `json:"_id"` Version int `json:"_version"` SeqNo int `json:"_seq_no"` PrimaryTerm int `json:"_primary_term"` Policy ISMPolicySpec `json:"policy,omitempty"` }
type ISMPolicyIDSpec ¶
type ISMPolicySpec ¶
type ISMPolicySpec struct { *ISMPolicyIDSpec `json:",inline,omitempty"` Description string `json:"description"` ISMTemplate []ISMTemplateSpec `json:"ism_template,omitempty"` ErrorNotification *NotificationSpec `json:"error_notification"` DefaultState string `json:"default_state"` States []StateSpec `json:"states"` }
func (ISMPolicySpec) MarshalJSON ¶
func (p ISMPolicySpec) MarshalJSON() ([]byte, error)
type ISMTemplateSpec ¶
type IndexPermissionSpec ¶
type IndexPriorityOperation ¶
type IndexPriorityOperation struct {
Priority int `json:"priority"`
}
type IndexTemplateSpec ¶
type IndexTemplateSpec struct { TemplateName string `json:"-"` IndexPatterns []string `json:"index_patterns,omitempty"` Template TemplateSpec `json:"template,omitempty"` Priority int `json:"priority,omitempty"` }
type IngestPipeline ¶ added in v0.5.0
type KibanaDocResponse ¶
type KibanaVersionDoc ¶
type KibanaVersionDoc struct {
DashboardVersion string `json:"version"`
}
type NotificationSpec ¶
type NotificationSpec struct { Destination DestinationSpec `json:"destination"` MessageTemplate map[string]string }
type OldISMGetResponse ¶
type OldISMGetResponse struct { ID string `json:"_id"` Version int `json:"_version"` SeqNo int `json:"_seq_no"` PrimaryTerm int `json:"_primary_term"` Policy OldISMPolicySpec `json:"policy,omitempty"` }
type OldISMPolicySpec ¶
type OldISMPolicySpec struct { *ISMPolicyIDSpec `json:",inline,omitempty"` Description string `json:"description"` ISMTemplate *ISMTemplateSpec `json:"ism_template,omitempty"` ErrorNotification *NotificationSpec `json:"error_notification"` DefaultState string `json:"default_state"` States []StateSpec `json:"states"` }
func (OldISMPolicySpec) MarshalJSON ¶
func (p OldISMPolicySpec) MarshalJSON() ([]byte, error)
type OpenOperation ¶
type OpenOperation struct { }
type OpniProcessorConfig ¶ added in v0.6.1
type OpniProcessorConfig struct { }
type Processor ¶ added in v0.5.0
type Processor struct { OpniLoggingProcessor *OpniProcessorConfig `json:"opni-logging-processor,omitempty"` OpniPreProcessor *OpniProcessorConfig `json:"opnipre,omitempty"` }
type PropertySettings ¶
type PropertySettings struct { Type string `json:"type,omitempty"` Format string `json:"format,omitempty"` Enabled *bool `json:"enabled,omitempty"` Fields map[string]FieldsSpec `json:"fields,omitempty"` IgnoreAbove int `json:"ignore_above,omitempty"` Properties map[string]PropertySettings `json:"properties,omitempty"` }
type ReadOnlyOperation ¶
type ReadOnlyOperation struct { }
type ReadWriteOperation ¶
type ReadWriteOperation struct { }
type ReindexDestSpec ¶ added in v0.5.1
type ReindexDestSpec struct {
Index string `json:"index,omitempty"`
}
type ReindexSourceSpec ¶ added in v0.5.1
type ReindexSourceSpec struct {
Index []string `json:"index,omitempty"`
}
type ReindexSpec ¶
type ReindexSpec struct { Source ReindexSourceSpec `json:"source"` Destination ReindexDestSpec `json:"dest"` }
type ReplicaCountOperation ¶
type ReplicaCountOperation struct {
NumberOfReplicas int `json:"number_of_replicas"`
}
type RoleMappingReponse ¶
type RoleMappingReponse map[string]RoleMappingSpec
type RoleMappingSpec ¶
type RoleSpec ¶
type RoleSpec struct { RoleName string `json:"-"` ClusterPermissions []string `json:"cluster_permissions,omitempty"` IndexPermissions []IndexPermissionSpec `json:"index_permissions,omitempty"` TenantPermissions []TenantPermissionsSpec `json:"tenant_permissions,omitempty"` }
type RolloverOperation ¶
type SnapshotOperation ¶
type StateSpec ¶
type StateSpec struct { Name string `json:"name"` Actions []ActionSpec `json:"actions,omitempty"` Transitions []TransitionSpec `json:"transitions,omitempty"` }
func (*StateSpec) UnmarshalJSON ¶
type TemplateMappingsSpec ¶
type TemplateMappingsSpec struct { DateDetection *bool `json:"date_detection,omitempty"` DynamicTemplates []map[string]DynamicTemplateSpec `json:"dynamic_templates,omitempty"` Properties map[string]PropertySettings `json:"properties,omitempty"` }
type TemplateSettingsSpec ¶
type TemplateSettingsSpec struct { NumberOfShards int `json:"number_of_shards,omitempty"` NumberOfReplicas int `json:"number_of_replicas,omitempty"` ISMPolicyID string `json:"opendistro.index_state_management.policy_id,omitempty"` RolloverAlias string `json:"opendistro.index_state_management.rollover_alias,omitempty"` DefaultPipeline string `json:"default_pipeline,omitempty"` }
func (*TemplateSettingsSpec) UnmarshalJSON ¶ added in v0.5.1
func (t *TemplateSettingsSpec) UnmarshalJSON(data []byte) error
type TemplateSpec ¶
type TemplateSpec struct { Settings TemplateSettingsSpec `json:"settings,omitempty"` Mappings TemplateMappingsSpec `json:"mappings,omitempty"` }
type TenantPermissionsSpec ¶
type TransitionSpec ¶
type TransitionSpec struct { StateName string `json:"state_name"` Conditions *ConditionSpec `json:"conditions,omitempty"` }
type UpdateAliasRequest ¶
type UpdateAliasRequest struct {
Actions []AliasActionSpec `json:"actions,omitempty"`
}
type UpsertKibanaDoc ¶
type UpsertKibanaDoc struct { Document KibanaVersionDoc `json:"doc,omitempty"` DocumentAsUpsert *bool `json:"doc_as_upsert,omitempty"` }
type UserSpec ¶
type UserSpec struct { UserName string `json:"-"` Password string `json:"password,omitempty"` Hash string `json:"hash,omitempty"` OpendistroSecurityRoles []string `json:"opendistro_security_roles,omitempty"` BackendRoles []string `json:"backend_roles,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
Click to show internal directories.
Click to hide internal directories.