1
0
mirror of https://github.com/rancher/types.git synced 2025-06-23 20:27:05 +00:00
types/mapper/container_probe.go

26 lines
579 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")
if !convert.IsEmpty(value) {
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
}