mirror of
https://github.com/rancher/types.git
synced 2025-06-24 12:41:33 +00:00
25 lines
561 B
Go
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
|
||
|
}
|