1
0
mirror of https://github.com/rancher/types.git synced 2025-06-25 13:11:33 +00:00
types/mapper/container_probe.go
2018-04-19 22:03:11 -07:00

25 lines
561 B
Go

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")
if !convert.IsEmpty(value) {
data["tcp"] = true
}
}
func (n ContainerProbeHandler) ToInternal(data map[string]interface{}) {
}
func (n ContainerProbeHandler) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
return nil
}