moby

package
v1.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL