1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-01 15:37:31 +00:00

Allow passing in access control impl to the server

This commit is contained in:
Darren Shepherd
2020-02-04 14:11:21 -07:00
parent 10418db494
commit b51e14edfb
4 changed files with 14 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ type Collection struct {
byGVR map[schema.GroupVersionResource]string
byGVK map[schema.GroupVersionKind]string
as *accesscontrol.AccessStore
as accesscontrol.AccessSetLookup
}
type Template struct {
@@ -46,7 +46,7 @@ type Template struct {
ComputedColumns func(data.Object)
}
func NewCollection(baseSchema *types.APISchemas, access *accesscontrol.AccessStore) *Collection {
func NewCollection(baseSchema *types.APISchemas, access accesscontrol.AccessSetLookup) *Collection {
return &Collection{
baseSchema: baseSchema,
schemas: map[string]*types.APISchema{},