1
0
mirror of https://github.com/rancher/types.git synced 2025-07-04 17:26:13 +00:00
types/factory/schemas.go
Darren Shepherd 143e41f471 Update types
2017-11-29 14:38:12 -07:00

19 lines
415 B
Go

package factory
import (
"github.com/rancher/norman/types"
"github.com/rancher/norman/types/factory"
"github.com/rancher/types/mapper"
)
func Schemas(version *types.APIVersion) *types.Schemas {
schemas := factory.Schemas(version)
baseFunc := schemas.DefaultMappers
schemas.DefaultMappers = func() []types.Mapper {
return append([]types.Mapper{
mapper.Status{},
}, baseFunc()...)
}
return schemas
}