1
0
mirror of https://github.com/rancher/types.git synced 2025-06-22 19:57:02 +00:00
types/mapper/container_probe.go
2018-07-19 10:40:37 -07:00

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