Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedBackend = errors.New("unsupported backend") ErrNameInvalid = errors.New("invalid key provided") Providers utils.Registry[RestProvider] )
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
Provide(obj resource.Object, scheme *runtime.Scheme, getter generic.RESTOptionsGetter) (rest.Storage, error)
}
func NewProvider ¶
func NewProvider(conf configv1alpha1.APIServerConfig) (Provider, error)
type RestProvider ¶
type RestProvider func(obj resource.Object, scheme *runtime.Scheme, getter generic.RESTOptionsGetter, backend *configv1alpha1.Backend, apiBinding *configv1alpha1.API) (rest.Storage, error)
type SingletonProvider ¶ added in v0.0.14
type SingletonProvider struct { sync.Once Provider apiserver.StorageProvider // contains filtered or unexported fields }
SingletonProvider ensures different versions of the same resource share storage
func (*SingletonProvider) Get ¶ added in v0.0.14
func (s *SingletonProvider) Get( scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (registryrest.Storage, error)
Click to show internal directories.
Click to hide internal directories.