search

package
v0.4.9-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeneralStorage added in v0.4.8

func NewGeneralStorage(c registry.ExtraConfig) (storage.Storage, error)

NewGeneralStorage creates a new instance of a general storage component using the provided extra configuration.

func NewResourceGroupRuleStorage

func NewResourceGroupRuleStorage(c registry.ExtraConfig) (storage.ResourceGroupRuleStorage, error)

NewResourceGroupRuleStorage creates a new instance of a resource group rule storage component using the provided extra configuration.

func NewResourceStorage

func NewResourceStorage(c registry.ExtraConfig) (storage.ResourceStorage, error)

NewResourceStorage creates a new instance of a resource storage component using the provided extra configuration.

func NewSearchStorage

func NewSearchStorage(c registry.ExtraConfig) (storage.SearchStorage, error)

NewSearchStorage creates a new instance of a search storage component using the provided extra configuration.

Types

type RESTStorageProvider

type RESTStorageProvider struct {
	SearchStorageType      string
	ElasticSearchAddresses []string
	ElasticSearchName      string
	ElasticSearchPassword  string
}

func (RESTStorageProvider) GeneralStorageGetter added in v0.4.8

func (p RESTStorageProvider) GeneralStorageGetter() (storage.GeneralStorageGetter, error)

GeneralStorageGetter returns the general storage getter for the provider.

func (RESTStorageProvider) GroupName

func (p RESTStorageProvider) GroupName() string

GroupName returns the group name for the REST storage provider.

func (RESTStorageProvider) NewRESTStorage

func (p RESTStorageProvider) NewRESTStorage(
	apiResourceConfigSource serverstorage.APIResourceConfigSource,
	restOptionsGetter generic.RESTOptionsGetter,
) (genericapiserver.APIGroupInfo, error)

func (RESTStorageProvider) ResourceGroupRuleStorageGetter

func (p RESTStorageProvider) ResourceGroupRuleStorageGetter() (storage.ResourceGroupRuleStorageGetter, error)

ResourceGroupRuleStorageGetter returns the resource group rule storage getter for the provider.

func (RESTStorageProvider) ResourceStorageGetter

func (p RESTStorageProvider) ResourceStorageGetter() (storage.ResourceStorageGetter, error)

ResourceStorageGetter returns the resource storage getter for the provider.

func (RESTStorageProvider) SearchStorageGetter

func (p RESTStorageProvider) SearchStorageGetter() (storage.SearchStorageGetter, error)

SearchStorageGetter returns the search storage getter for the provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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