types

package
v0.4.2-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 AllocationOperation struct {
	Require map[string]string `json:"require,omitempty"`
	Include map[string]string `json:"include,omitempty"`
	Exclude map[string]string `json:"exclude,omitempty"`
	WaitFor string            `json:"wait_for,omitempty"`
}

type ChimeSpec

type ChimeSpec struct {
	URL string `json:"url"`
}

type CloseOperation

type CloseOperation struct {
}

type ConditionSpec

type ConditionSpec struct {
	MinIndexAge string    `json:"min_index_age,omitempty"`
	MinDocCount int       `json:"min_doc_count,omitempty"`
	MinSize     string    `json:"min_size,omitempty"`
	Cron        *CronSpec `json:"cron,omitempty"`
}

type CronObject

type CronObject struct {
	Expression string `json:"expression"`
	Timezone   string `json:"timezone"`
}

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 ForceMergeOperation

type ForceMergeOperation struct {
	MaxNumSegments int `json:"max_num_segments"`
}

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 ISMPolicyIDSpec struct {
	PolicyID   string `json:"policy_id,omitempty"`
	MarshallID bool   `json:"-"`
}

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 ISMTemplateSpec struct {
	IndexPatterns []string `json:"index_patterns"`
	Priority      int      `json:"priority,omitempty"`
}

type IndexPermissionSpec

type IndexPermissionSpec struct {
	IndexPatterns         []string `json:"index_patterns,omitempty"`
	DocumentLevelSecurity string   `json:"dls,omitempty"`
	FieldLevelSecurity    []string `json:"fls,omitempty"`
	AllowedActions        []string `json:"allowed_actions,omitempty"`
}

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 KibanaDocResponse

type KibanaDocResponse struct {
	Index       string           `json:"_index,omitempty"`
	ID          string           `json:"_id,omitempty"`
	SeqNo       int              `json:"_seq_no,omitempty"`
	PrimaryTerm int              `json:"_primary_term,omitempty"`
	Found       *bool            `json:"found,omitempty"`
	Source      KibanaVersionDoc `json:"_source,omitempty"`
}

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 PropertySettings

type PropertySettings struct {
	Type    string `json:"type,omitempty"`
	Format  string `json:"format,omitempty"`
	Enabled *bool  `json:"enabled,omitempty"`
}

type ReadOnlyOperation

type ReadOnlyOperation struct {
}

type ReadWriteOperation

type ReadWriteOperation struct {
}

type ReindexIndexSpec

type ReindexIndexSpec struct {
	Index string `json:"index,omitempty"`
}

type ReindexSpec

type ReindexSpec struct {
	Source      ReindexIndexSpec `json:"source"`
	Destination ReindexIndexSpec `json:"dest"`
}

type ReplicaCountOperation

type ReplicaCountOperation struct {
	NumberOfReplicas int `json:"number_of_replicas"`
}

type RetrySpec

type RetrySpec struct {
	Count   int    `json:"count"`
	Backoff string `json:"backoff,omitempty"`
	Delay   string `json:"delay,omitempty"`
}

type RoleMappingReponse

type RoleMappingReponse map[string]RoleMappingSpec

type RoleMappingSpec

type RoleMappingSpec struct {
	BackendRoles []string `json:"backend_roles,omitempty"`
	Hosts        []string `json:"hosts,omitempty"`
	Users        []string `json:"users,omitempty"`
}

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 RolloverOperation struct {
	MinSize     string `json:"min_size,omitempty"`
	MinDocCount int    `json:"min_doc_count,omitempty"`
	MinIndexAge string `json:"min_index_age,omitempty"`
}

type SlackSpec

type SlackSpec struct {
	URL string `json:"url"`
}

type SnapshotOperation

type SnapshotOperation struct {
	Repository   string `json:"repository"`
	SnapshotName string `json:"snapshot"`
}

type StateSpec

type StateSpec struct {
	Name        string           `json:"name"`
	Actions     []ActionSpec     `json:"actions,omitempty"`
	Transitions []TransitionSpec `json:"transitions,omitempty"`
}

func (*StateSpec) UnmarshalJSON

func (s *StateSpec) UnmarshalJSON(data []byte) error

type TemplateMappingsSpec

type TemplateMappingsSpec struct {
	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"`
}

type TemplateSpec

type TemplateSpec struct {
	Settings TemplateSettingsSpec `json:"settings,omitempty"`
	Mappings TemplateMappingsSpec `json:"mappings,omitempty"`
}

type TenantPermissionsSpec

type TenantPermissionsSpec struct {
	TenantPatterns []string `json:"tenant_patterns,omitempty"`
	AllowedActions []string `json:"allowed_actions,omitempty"`
}

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"`
	OpendistroSecurityRoles []string          `json:"opendistro_security_roles,omitempty"`
	BackendRoles            []string          `json:"backend_roles,omitempty"`
	Attributes              map[string]string `json:"attributes,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL