mirror of
https://github.com/rancher/steve.git
synced 2025-09-24 21:08:03 +00:00
Refactor
This commit is contained in:
33
pkg/schemaserver/store/empty/empty_store.go
Normal file
33
pkg/schemaserver/store/empty/empty_store.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package empty
|
||||
|
||||
import (
|
||||
"github.com/rancher/steve/pkg/schemaserver/types"
|
||||
"github.com/rancher/wrangler/pkg/schemas/validation"
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
}
|
||||
|
||||
func (e *Store) Delete(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error) {
|
||||
return types.APIObject{}, validation.NotFound
|
||||
}
|
||||
|
||||
func (e *Store) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error) {
|
||||
return types.APIObject{}, validation.NotFound
|
||||
}
|
||||
|
||||
func (e *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error) {
|
||||
return types.APIObjectList{}, validation.NotFound
|
||||
}
|
||||
|
||||
func (e *Store) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error) {
|
||||
return types.APIObject{}, validation.NotFound
|
||||
}
|
||||
|
||||
func (e *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, id string) (types.APIObject, error) {
|
||||
return types.APIObject{}, validation.NotFound
|
||||
}
|
||||
|
||||
func (e *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, wr types.WatchRequest) (chan types.APIEvent, error) {
|
||||
return nil, nil
|
||||
}
|
Reference in New Issue
Block a user