Documentation ¶
Index ¶
- func FromPorts(ports []containers.Port) (map[nat.Port]struct{}, map[nat.Port][]nat.PortBinding, error)
- func ToHostConfig(m *types.ContainerJSON) *containers.HostConfig
- func ToPorts(ports []types.Port) []containers.Port
- func ToRestartPolicy(p string) container.RestartPolicy
- func ToRuntimeConfig(m *types.ContainerJSON) *containers.RuntimeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPorts ¶
func FromPorts(ports []containers.Port) (map[nat.Port]struct{}, map[nat.Port][]nat.PortBinding, error)
FromPorts convert to nat.Port / nat.PortBinding
func ToHostConfig ¶
func ToHostConfig(m *types.ContainerJSON) *containers.HostConfig
ToHostConfig convert into containers.HostConfig
func ToPorts ¶
func ToPorts(ports []types.Port) []containers.Port
ToPorts convert into containers.Port
func ToRestartPolicy ¶
func ToRestartPolicy(p string) container.RestartPolicy
ToRestartPolicy convert to container.RestartPolicy
func ToRuntimeConfig ¶
func ToRuntimeConfig(m *types.ContainerJSON) *containers.RuntimeConfig
ToRuntimeConfig convert into containers.RuntimeConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.