elasticsearch

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticsearchREST

func NewElasticsearchREST(
	groupResource schema.GroupResource,
	codec runtime.Codec,
	es *elasticsearch.Client,
	opts Options,
	isNamespaced bool,
	newFunc func() runtime.Object,
	newListFunc func() runtime.Object,
) rest.Storage

NewelasticsearchREST instantiates a new REST storage.

Types

type Dummy added in v0.0.5

type Dummy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Payload           json.RawMessage `json:"payload"`
}

Dummy +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*Dummy) DeepCopy added in v0.0.5

func (in *Dummy) DeepCopy() *Dummy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dummy.

func (*Dummy) DeepCopyInto added in v0.0.5

func (in *Dummy) DeepCopyInto(out *Dummy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Dummy) DeepCopyObject added in v0.0.5

func (in *Dummy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Dummy) GetGroupVersionResource added in v0.0.5

func (in *Dummy) GetGroupVersionResource() schema.GroupVersionResource

func (*Dummy) GetObjectMeta added in v0.0.5

func (in *Dummy) GetObjectMeta() *metav1.ObjectMeta

func (*Dummy) IsStorageVersion added in v0.0.5

func (in *Dummy) IsStorageVersion() bool

func (*Dummy) NamespaceScoped added in v0.0.5

func (in *Dummy) NamespaceScoped() bool

func (*Dummy) New added in v0.0.5

func (in *Dummy) New() runtime.Object

func (*Dummy) NewList added in v0.0.5

func (in *Dummy) NewList() runtime.Object

type DummyList added in v0.0.5

type DummyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Dummy `json:"items"`
}

DummyList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DummyList) DeepCopy added in v0.0.5

func (in *DummyList) DeepCopy() *DummyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DummyList.

func (*DummyList) DeepCopyInto added in v0.0.5

func (in *DummyList) DeepCopyInto(out *DummyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DummyList) DeepCopyObject added in v0.0.5

func (in *DummyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*DummyList) GetListMeta added in v0.0.5

func (in *DummyList) GetListMeta() *metav1.ListMeta

type Options

type Options struct {
	FieldMap         map[string][]string
	DropFields       []string
	Filter           labels.Requirements
	DefaultTimeRange string
	Backend          OptionsBackend
}

func MakeDefaultOptions

func MakeDefaultOptions() Options

func MakeOptionsFromConfig

func MakeOptionsFromConfig(apiBinding *configv1alpha1.API) (Options, error)

type OptionsBackend

type OptionsBackend struct {
	Index           string
	RefreshRate     time.Duration
	TimestampFields []string
	BulkSize        int64
}

Jump to

Keyboard shortcuts

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