Documentation ¶
Index ¶
- func NewGeneralStorage(c registry.ExtraConfig) (storage.Storage, error)
- func NewResourceGroupRuleStorage(c registry.ExtraConfig) (storage.ResourceGroupRuleStorage, error)
- func NewResourceStorage(c registry.ExtraConfig) (storage.ResourceStorage, error)
- func NewSearchStorage(c registry.ExtraConfig) (storage.SearchStorage, error)
- type RESTStorageProvider
- func (p RESTStorageProvider) GeneralStorageGetter() (storage.GeneralStorageGetter, error)
- func (p RESTStorageProvider) GroupName() string
- func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, ...) (genericapiserver.APIGroupInfo, error)
- func (p RESTStorageProvider) ResourceGroupRuleStorageGetter() (storage.ResourceGroupRuleStorageGetter, error)
- func (p RESTStorageProvider) ResourceStorageGetter() (storage.ResourceStorageGetter, error)
- func (p RESTStorageProvider) SearchStorageGetter() (storage.SearchStorageGetter, error)
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.