metadata

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Alias = new(alias)
View Source
var ErrorKeyNotExists = errors.New("key not exists")
View Source
var ILM = new(ilm)
View Source
var Index = new(index)
View Source
var KV = new(kv)
View Source
var Permission = &permission{ps: []string{}}
View Source
var Role = new(role)
View Source
var Template = new(template)
View Source
var User = new(user)

Functions

func Close

func Close() error

Types

type ILMPhase

type ILMPhase struct {
	MinAge  string                 `json:"min_age,omitempty"`
	Actions map[string]interface{} `json:"actions,omitempty"`
}

ILMPhase is one phase of a lifecycle policy. Only min_age is interpreted; actions are stored as sent so Elasticsearch clients round-trip unchanged.

type ILMPolicy

type ILMPolicy struct {
	Phases map[string]ILMPhase `json:"phases,omitempty"`
}

ILMPolicy is a minimal index lifecycle policy: the warm, cold and delete phases with the age at which an index enters them.

type ILMPolicyRecord

type ILMPolicyRecord struct {
	Name         string    `json:"name"`
	Version      int64     `json:"version"`
	ModifiedDate int64     `json:"modified_date"`
	Policy       ILMPolicy `json:"policy"`
}

ILMPolicyRecord is the stored form of a policy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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