mirror of
https://github.com/rancher/types.git
synced 2025-06-22 19:57:02 +00:00
26 lines
588 B
Go
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
|
|
}
|