1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-31 15:11:31 +00:00
Files
steve/pkg/resources/schema.go
Darren Shepherd 583309b969 Add column support
2019-08-14 11:08:34 -07:00

24 lines
655 B
Go

package resources
import (
"github.com/rancher/naok/pkg/accesscontrol"
"github.com/rancher/naok/pkg/resources/common"
"github.com/rancher/naok/pkg/resources/counts"
"github.com/rancher/naok/pkg/resources/schema"
"github.com/rancher/norman/pkg/store/proxy"
"github.com/rancher/norman/pkg/subscribe"
"github.com/rancher/norman/pkg/types"
)
func SchemaFactory(getter proxy.ClientGetter, as *accesscontrol.AccessStore) *schema.Collection {
baseSchema := types.EmptySchemas()
collection := schema.NewCollection(baseSchema, as)
counts.Register(baseSchema)
subscribe.Register(baseSchema)
common.Register(collection, getter)
return collection
}