1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 23:08:25 +00:00

Revert "Pluggable driver types"

This reverts commit 216385b63e.
This commit is contained in:
Nathan Jenan
2018-11-27 17:50:10 -07:00
committed by Craig Jellick
parent d4684eb26d
commit 7bd01e2984
5 changed files with 123 additions and 127 deletions

View File

@@ -1,23 +0,0 @@
package mapper
import "github.com/rancher/norman/types/mapper"
// DropFromSchema This mapper differs from the existing drop mapper in that
// it does not remove the field if it is present, only removing the field from
// the schema. This is so that fields that must be present for formatters and
// stores will be available, but not shown on the schema
type DropFromSchema struct {
mapper.Drop
}
func NewDropFromSchema(name string) *DropFromSchema {
return &DropFromSchema{
mapper.Drop{
Field: name,
},
}
}
func (d DropFromSchema) FromInternal(data map[string]interface{}) {
// Do nothing
}