1
0
mirror of https://github.com/rancher/types.git synced 2025-06-23 04:07:03 +00:00
types/mapper/container_probe.go

26 lines
588 B
Go
Raw Normal View History

2018-04-18 23:02:20 +00:00
package mapper
import (
"github.com/rancher/norman/types"
"github.com/rancher/norman/types/convert"
"github.com/rancher/norman/types/values"
)
type ContainerProbeHandler struct {
}
func (n ContainerProbeHandler) FromInternal(data map[string]interface{}) {
value := values.GetValueN(data, "tcpSocket", "port")
2018-07-13 20:26:30 +00:00
if !convert.IsAPIObjectEmpty(value) {
2018-04-18 23:02:20 +00:00
data["tcp"] = true
}
}
2018-06-05 04:44:54 +00:00
func (n ContainerProbeHandler) ToInternal(data map[string]interface{}) error {
return nil
2018-04-18 23:02:20 +00:00
}
func (n ContainerProbeHandler) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
return nil
}