backendstore

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBackend

func AddBackend(cluster string, cfg *searchv1alpha1.BackendStoreConfig)

AddBackend add backend store

func DeleteBackend

func DeleteBackend(cluster string)

DeleteBackend delete backend store

func Init

func Init(cs *kubernetes.Clientset)

Init init backend store manager

Types

type BackendStore

type BackendStore interface {
	ResourceEventHandlerFuncs() cache.ResourceEventHandler
	Close()
}

BackendStore define BackendStore interface

func GetBackend

func GetBackend(cluster string) BackendStore

GetBackend get backend store

type Default

type Default struct {
	// contains filtered or unexported fields
}

Default is the default BackendStore

func NewDefaultBackend

func NewDefaultBackend(cluster string) *Default

NewDefaultBackend create a new default BackendStore

func (*Default) Close

func (*Default) Close()

Close close the BackendStore

func (*Default) ResourceEventHandlerFuncs

func (d *Default) ResourceEventHandlerFuncs() cache.ResourceEventHandler

ResourceEventHandlerFuncs returns the ResourceEventHandler

type OpenSearch

type OpenSearch struct {
	// contains filtered or unexported fields
}

OpenSearch implements backendstore.BackendStore

func NewOpenSearch

func NewOpenSearch(cluster string, cfg *searchv1alpha1.BackendStoreConfig) (*OpenSearch, error)

NewOpenSearch returns a new OpenSearch

func (*OpenSearch) Close

func (os *OpenSearch) Close()

Close the client

func (*OpenSearch) ResourceEventHandlerFuncs

func (os *OpenSearch) ResourceEventHandlerFuncs() cache.ResourceEventHandler

ResourceEventHandlerFuncs implements cache.ResourceEventHandler

Jump to

Keyboard shortcuts

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